Commit Graph

17 Commits

Author SHA1 Message Date
Hector Sanjuan
7c6e212b2d Update the license distributed with dist builds to the dual one
This was an old leftover
2020-02-06 22:27:15 +01:00
Kirill Goncharov
2865ae79a1 install.sh: Fix wrong destination path for ipfs binary
License: MIT
Signed-off-by: Kirill Goncharov <kdgoncharov@gmail.com>
2019-06-08 19:21:59 +03:00
Oli Evans
c18760060b
fix: show interactive output from install.sh
When trying out the latest rc, i used the `./install.sh`
It hung, with no output. I removed the 2> /dev/null and
it turned out mv was waiting for user input to confirm
the change of file permssions from 555 to 755.

This PR removes piping the output from mv to /dev/null
as it seems like the safest fix.

An alternative would be to just add -f but i've err'd
on the side of caution.

If also tweaked the second condition basedo on the
recommendations of shellcheck
see: https://github.com/koalaman/shellcheck/wiki/SC2166

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-02-26 13:46:40 +00:00
Edison Lee
aacb8bc75c
Fix typo of sudo install command
License: MIT
Signed-off-by: Edison Lee <edisonlee@edisonlee55.com>
2018-05-06 19:09:43 +08:00
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