mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 11:12:44 +01:00
Merge pull request #436 from slingamn/bashisms
fix bashisms in install.sh
This commit is contained in:
commit
ec620af880
14
install.sh
14
install.sh
@ -5,8 +5,8 @@ set -e
|
|||||||
if [ -z "$GOPATH" ]; then
|
if [ -z "$GOPATH" ]; then
|
||||||
echo Error: \$GOPATH is unset
|
echo Error: \$GOPATH is unset
|
||||||
echo See https://golang.org/doc/code.html for details, or try these steps:
|
echo See https://golang.org/doc/code.html for details, or try these steps:
|
||||||
echo -e "\tmkdir -p ~/go"
|
printf "\tmkdir -p ~/go\n"
|
||||||
echo -e "\texport GOPATH=~/go"
|
printf "\texport GOPATH=~/go\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -17,12 +17,12 @@ if [ "$PWD" != "$EXPECTED_DIR" ] ; then
|
|||||||
echo "Expected: $EXPECTED_DIR"
|
echo "Expected: $EXPECTED_DIR"
|
||||||
echo "Actual: $PWD"
|
echo "Actual: $PWD"
|
||||||
echo See https://golang.org/doc/code.html for details, or try these steps:
|
echo See https://golang.org/doc/code.html for details, or try these steps:
|
||||||
echo -e "\tmkdir -p ${GOPATH}/src/github.com/oragono"
|
printf "\tmkdir -p %s/src/github.com/oragono\n" "$GOPATH"
|
||||||
echo -e "\tcd ${GOPATH}/src/github.com/oragono"
|
printf "\tcd %s/src/github.com/oragono\n" "$GOPATH"
|
||||||
echo -e "\tmv $PWD oragono"
|
printf "\tmv %s oragono\n" "$PWD"
|
||||||
echo -e "\tcd oragono"
|
printf "\tcd oragono\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
go install -v
|
go install -v
|
||||||
echo successfully installed as ${GOPATH}/bin/oragono
|
echo successfully installed as "${GOPATH}/bin/oragono"
|
||||||
|
Loading…
Reference in New Issue
Block a user