diff options
author | Jamie McClelland <jm@mayfirst.org> | 2010-09-17 15:20:05 -0400 |
---|---|---|
committer | Jamie McClelland <jm@mayfirst.org> | 2010-09-17 15:20:05 -0400 |
commit | 72e19d1146721d3e19b0ce45e0d7821a93e85ef2 (patch) | |
tree | a7c1a51a9ae6d08c61722b2393ff534257750a56 | |
parent | a490a1bf3e668674760cdda4e46f2e472fc3460c (diff) | |
download | keyringer-72e19d1146721d3e19b0ce45e0d7821a93e85ef2.tar.gz keyringer-72e19d1146721d3e19b0ce45e0d7821a93e85ef2.tar.bz2 |
use \n (like break) for array separator instead of space to support
files with spaces between lines.
-rwxr-xr-x | share/keyringer/append | 5 |
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" |