Skip to content

Commit

Permalink
fix parameter expansion as recommended by
Browse files Browse the repository at this point in the history
  • Loading branch information
ptarjan committed May 26, 2009
1 parent 4b5c4f6 commit 624ef3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpg-encrypt.sh
Expand Up @@ -35,7 +35,7 @@ then
exit 1
else
# decrypt into the tmp file
echo $passw | gpg -q -d --passphrase-fd 0 $filename > $tmp
echo "$passw" | gpg -q -d --passphrase-fd 0 $filename > $tmp
if [ $? != 0 ]; then
# if gpg didn't work, exit
rm $tmp
Expand All @@ -44,7 +44,7 @@ else
fi

$editor $tmp
echo $passw | gpg -q -c --passphrase-fd 0 --output $filename $tmp
echo "$passw" | gpg -q -c --passphrase-fd 0 --output $filename $tmp
rm $tmp
if [ $? != 0 ]; then
# if gpg didn't work, exit
Expand Down

0 comments on commit 624ef3c

Please sign in to comment.