Permalink
Browse files

Avoid confusing zsh.

  • Loading branch information...
wayneeseguin committed May 4, 2012
1 parent 792a3f2 commit b1005292530be9938a1b5788448ff947f35135d7
Showing with 5 additions and 3 deletions.
  1. +5 −3 bin/sm-installer
View
@@ -1,6 +1,8 @@
#!/usr/bin/env sh
platform=` uname -i 2>/dev/null || uname -s `
+platform=`uname -s`
+uname -m
case $platform in
(Darwin|i386|x86_64)
@@ -58,8 +60,8 @@ true sm_owner:${sm_owner:=sm}:
rm -rf "${sm_path}/src/${sm_owner}-sm"
mkdir -p "${sm_path}/archives" "${sm_path}/bin" "${sm_path}/src/${sm_owner}-sm"
-${sm_curl_command} https://smf.sh/zsh/$platform/zsh -o "${sm_path}/bin/sm-zsh"
-chmod +x "${sm_path}/bin/sm-zsh"
+${sm_curl_command} https://smf.sh/zsh/$platform/zsh -o "${sm_path}/bin/zsh"
+chmod +x "${sm_path}/bin/zsh"
${sm_curl_command} -L https://github.com/${sm_owner}/sm/tarball/master -o "${sm_path}/archives/${sm_owner}-sm.tar.gz"
cd "${sm_path}/src/${sm_owner}-sm"
@@ -70,5 +72,5 @@ chmod +x "${sm_path}/src/${sm_owner}-sm/bin/sm-mustache"
cp "${sm_path}/src/${sm_owner}-sm/bin/sm-mustache" "${sm_path}/bin/sm-mustache"
rm -rf ${sm_owner}-sm-*
-"${sm_path}/bin/sm-zsh" ./install --zsh "${sm_path}/bin/sm-zsh" "$@"
+"${sm_path}/bin/zsh" ./install --zsh "${sm_path}/bin/zsh" "$@"

0 comments on commit b100529

Please sign in to comment.