diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-06-06 11:14:44 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-06-06 11:14:44 -0300 |
commit | cdf70d5e37aac6d697d3014e8f41ca173b586031 (patch) | |
tree | b931ba22e03bb6d1e7c28c845dd3cf1458a94280 | |
parent | b692210193226d5aeed6eb688f5c3da30ec1bd96 (diff) | |
download | keyringer-cdf70d5e37aac6d697d3014e8f41ca173b586031.tar.gz keyringer-cdf70d5e37aac6d697d3014e8f41ca173b586031.tar.bz2 |
Fix: encrypt: BASEPATH evaluation when encrypting a folder
-rwxr-xr-x | lib/keyringer/actions/encrypt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyringer/actions/encrypt b/lib/keyringer/actions/encrypt index 1256374..f762f29 100755 --- a/lib/keyringer/actions/encrypt +++ b/lib/keyringer/actions/encrypt @@ -93,7 +93,7 @@ fi # Encrypt if [ "$UNENCRYPTED_FILE" != "-" ] && [ -d "$UNENCRYPTED_FILE" ]; then # Time to go recursive - BASEPATH="`basename $FILE .asc`" + BASEPATH="`echo $FILE | sed -e 's/.asc$//'`" FILEPATH="`dirname "$UNENCRYPTED_FILE"`" if [ "$FILEPATH" == "." ]; then |