1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 07:12:13 +08:00

fix(encode64): use proper encode file flags

Fixes #12509
This commit is contained in:
Carlo Sala 2024-06-17 20:37:21 +02:00
parent 677f5010da
commit 7e4ee3a3cd
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A

View File

@ -10,7 +10,7 @@ encodefile64() {
if [[ $# -eq 0 ]]; then
echo "You must provide a filename"
else
base64 -i $1 -o $1.txt
base64 $1 > $1.txt
echo "${1}'s content encoded in base64 and saved as ${1}.txt"
fi
}