aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/keyringer/append5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/keyringer/append b/share/keyringer/append
index 2b3eb27..be6bc7f 100755
--- a/share/keyringer/append
+++ b/share/keyringer/append
@@ -22,6 +22,9 @@ elif [ ! -f "$KEYDIR/$FILE" ]; then
exit 1
fi
+OLDIFS=$IFS
+IFS=$'\n'
+
CONTENT=($(keyringer_exec decrypt $BASEDIR $FILE))
echo "This is the current content of $FILE:"
@@ -37,3 +40,5 @@ NEW=( ${CONTENT[@]} ${APPEND[@]} )
for element in $(seq 0 $((${#NEW[@]} - 1))); do
echo ${NEW[$element]}
done | keyringer_exec encrypt $BASEDIR $FILE
+
+IFS="$OLDIFS"