Skip to content

Commit

Permalink
Avoid confusing zsh.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed May 4, 2012
1 parent 792a3f2 commit b100529
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/sm-installer
@@ -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)
Expand Down Expand Up @@ -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"
Expand All @@ -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.