We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b48fbe commit 92f10d7Copy full SHA for 92f10d7
install.sh
@@ -1,10 +1,28 @@
1
#!/bin/bash
2
+#
3
+# Usage:
4
+# $ curl -fsSL https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh | bash
5
+# or
6
+# $ wget -q https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh -O- | bash
7
8
+
9
set -e
-os="`uname`"
-case $os in
10
+uname_output=$(uname)
11
+case $uname_output in
12
'Linux')
- # TODO detect bits
- os='linux-x86_64'
13
+ linux_uname_output=$(uname -i)
14
+ case $linux_uname_output in
15
+ 'x86_64')
16
+ os='linux-x86_64'
17
+ ;;
18
+ 'i686')
19
+ os='linux-x86'
20
21
+ *)
22
+ echo "Sorry, you'll need to install the pact-ruby-standalone manually."
23
+ exit 1
24
25
+ esac
26
;;
27
'Darwin')
28
os='osx'
0 commit comments