From f3e8d825e0281ce840ff7406274706f4de168e53 Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Sun, 21 Jun 2015 17:06:55 -0600 Subject: [PATCH] Fix Mac OS X issue in fetch-configlet script 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: https://github.com/exercism/xjava/commit/a5c990064aa66e45e9896efed5801ba704d79339 --- bin/fetch-configlet | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/fetch-configlet b/bin/fetch-configlet index 11c899443..4f64c5b9a 100755 --- a/bin/fetch-configlet +++ b/bin/fetch-configlet @@ -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)