docker-openldap/example/kubernetes/using-secrets/environment/file-to-base64.sh

9 lines
121 B
Bash
Executable File

#!/bin/bash
# print a file encode into base64
FILE=$1
FILE_ENCODED=$(cat $FILE | base64 --wrap=0)
echo $FILE_ENCODED