Commit 0ccdbe0
Add graceful degradation for sha_cmd in get.sh
The earlier choice of using shasum was made for broadest support reasons. However
the breadth of support could be broader still by introducing graceful degradation
to get.sh. This change defaults the command to be used to sha256sum and reverts to
shasum -a 256 if the default isnt found.
Signed-off-by: Richard Gee <richard@technologee.co.uk>1 parent 8ded58d commit 0ccdbe0
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | | - | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
| |||
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
111 | | - | |
| 119 | + | |
112 | 120 | | |
113 | 121 | | |
114 | 122 | | |
| |||
0 commit comments