Skip to content

Commit

Permalink
Fix Mac OS X issue in fetch-configlet script
Browse files Browse the repository at this point in the history
As @jtigger kindly pointed out in https://github.com/exercism/x-api/issues/59
the fetch-configlet script doesn't compile properly with the default bash that
ships on macs.

This copies his fix from the Java track:
exercism/java@a5c9900
  • Loading branch information
kytrinyx committed Jun 21, 2015
1 parent 6d97ab6 commit 78f9c33
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bin/fetch-configlet
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ LATEST=https://github.com/exercism/configlet/releases/latest

OS=$(
case $(uname) in
Darwin*)
(Darwin*)
echo "mac";;
Linux*)
(Linux*)
echo "linux";;
Windows*)
(Windows*)
echo "windows";;
*)
(*)
echo "linux";;
esac)
ARCH=$(
case $(uname -m) in
*64*)
(*64*)
echo 64bit;;
*686*)
(*686*)
echo 32bit;;
*386*)
(*386*)
echo 32bit;;
*)
(*)
echo 64bit;;
esac)
Expand Down

0 comments on commit 78f9c33

Please sign in to comment.