Commit Graph

13 Commits

Author SHA1 Message Date
Scott Bigelow
bc3a7619ae fix bug with spaces in directory name
License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
2018-01-05 10:38:46 -08:00
Scott Bigelow
55d224a81b Changing command substitution format
License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
2018-01-04 16:50:06 -08:00
Scott Bigelow
a2eb40c423 Allow install.sh to be run without being the script dir
License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
2018-01-04 15:35:18 -08:00
Stephan Kulla
d00097f57c README.md: Add sudo to install commands.
Most users will need `sudo` to run the installation script successfully.

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-10 12:40:54 +02:00
Stephan Kulla
465e4b9f75 install.sh: Remove -t parameter from mv command.
Return to the old definition of the mv command since there is no `-t`
parameter in `mv` of BSD. Cf.
https://www.freebsd.org/cgi/man.cgi?query=mv&sektion=1

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-08 16:55:07 +02:00
Stephan Kulla
7f194c9721 install.sh: Enhance comments of the script.
I removed the comment about using $PATH since it leads to long
installation scripts (which violates the KISS principle). Cf. the
discussion on https://github.com/ipfs/go-ipfs/pull/2504

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-08 10:42:58 +02:00
Stephan Kulla
81e40de5ee install.sh: Recommend using sudo on error.
Show error message that the user shall try running this script with sudo
in case write permissions are missing. Implement proposal of comment
https://github.com/ipfs/go-ipfs/pull/3194#issuecomment-245376993

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-08 10:42:58 +02:00
Stephan Kulla
f00b8d58ec install.sh: Make success message clearer.
Implement proposal of the comment
https://github.com/ipfs/go-ipfs/pull/2504#discussion_r77872959

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-08 10:42:50 +02:00
Stephan Kulla
f8458411c1 install.sh: Check whether installation succeeds.
I moved the mv command into the if-condition so that the script only
succeeds when mv command ran properly. Thus, there is no need to check
whether the mv command will succeed beforehand.

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-07 13:39:05 +02:00
Stephan Kulla
28a69eea10 install.sh: Treat $binpath as target directory.
In case $binpath/$bin is an already existing directory, the command

    mv "$bin" "$binpath/$bin"

would store the binary in the place $binpath/$bin/$bin. I guess this is
not the expected behavior. Therefore I used the -t option of `mv' to
specify the target directory explicitly.

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-07 13:29:48 +02:00
Stephan Kulla
fc20fe870d install.sh: Add error message at the end.
License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-06 16:05:38 +02:00
Stephan Kulla
1f81933fb6 install.sh: Add for loop to shorten script.
License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-06 16:04:43 +02:00
Juan Batiz-Benet
20b5f96e6a gobuilder improvements
- README.md
- install.sh script
- LICENSE
- trigger in main repo
2015-04-02 03:00:49 -07:00