Sfoglia il codice sorgente

fetch-configlet uses slightly more portable syntax.

- fixes exercism/x-api#59
John S. Ryan 11 anni fa
parent
commit
a5c990064a
1 ha cambiato i file con 8 aggiunte e 8 eliminazioni
  1. 8
    8
      bin/fetch-configlet

+ 8
- 8
bin/fetch-configlet Vedi File

4
 
4
 
5
 OS=$(
5
 OS=$(
6
 case $(uname) in
6
 case $(uname) in
7
-    Darwin*)
7
+    (Darwin*)
8
         echo "mac";;
8
         echo "mac";;
9
-    Linux*)
9
+    (Linux*)
10
         echo "linux";;
10
         echo "linux";;
11
-    Windows*)
11
+    (Windows*)
12
         echo "windows";;
12
         echo "windows";;
13
-    *)
13
+    (*)
14
         echo "linux";;
14
         echo "linux";;
15
 esac)
15
 esac)
16
 
16
 
17
 ARCH=$(
17
 ARCH=$(
18
 case $(uname -m) in
18
 case $(uname -m) in
19
-    *64*)
19
+    (*64*)
20
         echo 64bit;;
20
         echo 64bit;;
21
-    *686*)
21
+    (*686*)
22
         echo 32bit;;
22
         echo 32bit;;
23
-    *386*)
23
+    (*386*)
24
         echo 32bit;;
24
         echo 32bit;;
25
-    *)
25
+    (*)
26
         echo 64bit;;
26
         echo 64bit;;
27
 esac)
27
 esac)
28
 
28