Browse Source

fix bashisms in install.sh

tags/v1.1.0-rc1
Shivaram Lingamneni 5 years ago
parent
commit
8fa70e2c45
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      install.sh

+ 7
- 7
install.sh View File

5
 if [ -z "$GOPATH" ]; then
5
 if [ -z "$GOPATH" ]; then
6
 	echo Error: \$GOPATH is unset
6
 	echo Error: \$GOPATH is unset
7
 	echo See https://golang.org/doc/code.html for details, or try these steps:
7
 	echo See https://golang.org/doc/code.html for details, or try these steps:
8
-	echo -e "\tmkdir -p ~/go"
9
-	echo -e "\texport GOPATH=~/go"
8
+	printf "\tmkdir -p ~/go\n"
9
+	printf "\texport GOPATH=~/go\n"
10
 	exit 1
10
 	exit 1
11
 fi
11
 fi
12
 
12
 
17
 	echo "Expected: $EXPECTED_DIR"
17
 	echo "Expected: $EXPECTED_DIR"
18
 	echo "Actual:   $PWD"
18
 	echo "Actual:   $PWD"
19
 	echo See https://golang.org/doc/code.html for details, or try these steps:
19
 	echo See https://golang.org/doc/code.html for details, or try these steps:
20
-	echo -e "\tmkdir -p ${GOPATH}/src/github.com/oragono"
21
-	echo -e "\tcd ${GOPATH}/src/github.com/oragono"
22
-	echo -e "\tmv $PWD oragono"
23
-	echo -e "\tcd oragono"
20
+	printf "\tmkdir -p %s/src/github.com/oragono\n" "$GOPATH"
21
+	printf "\tcd %s/src/github.com/oragono\n" "$GOPATH"
22
+	printf "\tmv %s oragono\n" "$PWD"
23
+	printf "\tcd oragono\n"
24
 	exit 1
24
 	exit 1
25
 fi
25
 fi
26
 
26
 
27
 go install -v
27
 go install -v
28
-echo successfully installed as ${GOPATH}/bin/oragono
28
+echo successfully installed as "${GOPATH}/bin/oragono"

Loading…
Cancel
Save