Avoid globbing and word splitting when expanding variables

master
Victor Engmark 2018-11-17 07:10:25 +13:00
parent ea0be30283
commit b2722e6b19
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ do
firstChar="${line:0:1}" firstChar="${line:0:1}"
if [[ "$firstChar" != "$commentChar" ]] && [[ -n "$firstChar" ]] if [[ "$firstChar" != "$commentChar" ]] && [[ -n "$firstChar" ]]
then then
echo -n $line | base64 echo -n "$line" | base64
else else
echo $line echo "$line"
fi fi
done <blns.txt done <blns.txt