Skip to content

Commit

Permalink
fixed encrypt.sh to support destination directory
Browse files Browse the repository at this point in the history
  • Loading branch information
alinush committed Dec 20, 2014
1 parent 0f064b4 commit 1d8001f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/encrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ fi

. "$scriptdir/shlibs/crypto.sh" >&2

if [ -d "$vOutFile" ]; then
vOutFile="`readlink -f $vOutFile`/`basename $vInFile`.enc"
fi

echo "Operation:"
echo " * encrypt('$vInFile') -> '$vOutFile'"; echo;

Expand Down

0 comments on commit 1d8001f

Please sign in to comment.