Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improved zsh detection

  • Loading branch information...
commit 896cd31ff2df25bce5fdbc7f1ded059a6e3aff5b 1 parent 62b0016
@mpapis mpapis authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 install
View
12 install
@@ -2,12 +2,6 @@
extension_args=()
-if ! command -v zsh >/dev/null
-then
- echo "ERROR: ZSH is required for SM."
- exit 1
-fi
-
while (( $# ))
do
case "$1" in
@@ -54,6 +48,12 @@ do
esac
done
+if [[ -z "${sm_shell:-}" ]] && ! command -v zsh >/dev/null
+then
+ echo "ERROR: ZSH is required for SM."
+ exit 1
+fi
+
if [[ -n "${prefix_path}" ]]
then
sm_path="${DESTROOT:-}${prefix_path}/sm"
Please sign in to comment.
Something went wrong with that request. Please try again.