wrong shebang?
Issue #12
resolved
initial-install.sh contains bash shebang but doesn't work in bash.
$ wget https://bitbucket.org/ymotongpoo/goenv/raw/master/shellscripts/initial-install.sh
$ head -n 1 initial-install.sh
#!/usr/bin/env bash
$ chmod +x initial-install.sh
$ ./initial-install.sh
[goenv] please confirm directory permission for GOENVGOROOT
$ ./initial-install.sh
[goenv] please confirm directory permission for GOENVTARGET
$ ./initial-install.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8345 100 8345 0 0 11815 0 --:--:-- --:--:-- --:--:-- 11803
goenvwrapper.sh: line 348: syntax error near unexpected token `>'
goenvwrapper.sh: line 348: ` if ./all.bash &>> "$logfile"; then'
goenvwrapper.sh: line 57: _goof_goinstall: command not found
goenvwrapper.sh: line 57: _goof_goinstall: command not found
[goenv] command does not work.
My environments:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.5
BuildVersion: 14F27
$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.
Comments (3)
-
-
reporter It works well.
Do we should use the develop branch to install goenv? README is written to use the master branch.
-
reporter - changed status to resolved
This issue is already fixed in 7a929b2.
- Log in to comment
Please try the develop branch as
https://bitbucket.org/ymotongpoo/goenv/raw/develop/shellscripts/initial-install.sh
.It fixed in 7a929b2.