aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-06-06 11:14:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-06-06 11:14:44 -0300
commitcdf70d5e37aac6d697d3014e8f41ca173b586031 (patch)
treeb931ba22e03bb6d1e7c28c845dd3cf1458a94280
parentb692210193226d5aeed6eb688f5c3da30ec1bd96 (diff)
downloadkeyringer-cdf70d5e37aac6d697d3014e8f41ca173b586031.tar.gz
keyringer-cdf70d5e37aac6d697d3014e8f41ca173b586031.tar.bz2
Fix: encrypt: BASEPATH evaluation when encrypting a folder
-rwxr-xr-xlib/keyringer/actions/encrypt2
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