diff options
author | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-03-27 01:14:34 +0100 |
---|---|---|
committer | Paweł Zuzelski <pawelz@pld-linux.org> | 2010-03-27 01:14:34 +0100 |
commit | 32a4061abdd5f30e4a25c982fb52b09c08b39fb5 (patch) | |
tree | 52cecd22b4fc5bb3b85ca5f46ae403b1c2bd1bc3 /examples | |
parent | 3ef66652a30b67da24a5dc7d1bc131716c311cfb (diff) |
quote ${editor} and ${VISUAL}
These variables must be quoted. Otherwise script fails for
VISUAL="xterm -name xvim -e vim"
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/data/scripts/formfiller.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/data/scripts/formfiller.sh b/examples/data/scripts/formfiller.sh index 20d1d52..6f6dc34 100755 --- a/examples/data/scripts/formfiller.sh +++ b/examples/data/scripts/formfiller.sh @@ -37,9 +37,9 @@ keydir=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/dforms [ -d "`dirname $keydir`" ] || exit 1 [ -d "$keydir" ] || mkdir "$keydir" -editor=${VISUAL} -if [ -z ${editor} ]; then - if [ -z ${EDITOR} ]; then +editor="${VISUAL}" +if [ -z "${editor}" ]; then + if [ -z "${EDITOR}" ]; then editor='xterm -e vim' else editor="xterm -e ${EDITOR}" |