Skip to content

Commit

Permalink
allow using /bin/sh for vimcat shell #118
Browse files Browse the repository at this point in the history
Instead of exiting with an error if a better shell is not found, set
_MY_SHELL to $SHELL or /bin/sh and continue. This should usually work
since we removed the array syntax.
  • Loading branch information
rkitover committed Jun 28, 2015
1 parent 9a4c7ed commit d0bf869
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vimcat
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
export _MY_SHELL
exec ksh "$0" "$@"
else
echo "$0 requires either bash or ksh" >&2
exit
_MY_SHELL="${SHELL:-/bin/sh}"
fi
fi

Expand Down

0 comments on commit d0bf869

Please sign in to comment.