Skip to content

Commit

Permalink
double-equals isn't /bin/sh compatible
Browse files Browse the repository at this point in the history
this problem was discovered when running under dash (the Debian Almquist shell)
  • Loading branch information
DeeNewcum committed Aug 7, 2012
1 parent c524189 commit 6bcb8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viencrypt
Expand Up @@ -11,7 +11,7 @@ else
fi

# more security for vi
if [ $editor == "vi" -o $editor == "vim" ]
if [ $editor = "vi" -o $editor = "vim" ]
then
# -n is for noswap and -i NONE is for no .viminfo
editor="$editor -n -i NONE"
Expand Down

0 comments on commit 6bcb8a7

Please sign in to comment.