aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/append
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer/actions/append')
-rwxr-xr-xlib/keyringer/actions/append4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/keyringer/actions/append b/lib/keyringer/actions/append
index e307056..818a7ac 100755
--- a/lib/keyringer/actions/append
+++ b/lib/keyringer/actions/append
@@ -8,7 +8,7 @@ LIB="`dirname $0`/../functions"
source "$LIB" || exit 1
# Get file
-keyringer_get_file "$2"
+keyringer_get_file "$RELATIVE_PATH/$2"
# Only display directions if we're running append, not append-batch
if [ "$BASENAME" == "append" ]; then
@@ -17,4 +17,4 @@ fi
# Append content to an existing secret
( keyringer_exec decrypt "$BASEDIR" "$FILE" && cat ) | \
- keyringer_exec encrypt-batch $BASEDIR $FILE
+ keyringer_exec encrypt-batch "$BASEDIR" "$FILE"