Commit Graph

21 Commits

Author SHA1 Message Date
Marcin Rataj
5af3cc1c02
docs: updated links and refs to external resources (#10368) 2024-03-16 00:59:22 +01:00
ElPaisano
714a968faa
docs: bulk spelling edits (#9544)
Co-authored-by: Jorropo <jorropo.pgm@gmail.com>
Co-authored-by: Steve Loeppky <biglep@protocol.ai>
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-02-20 23:37:10 +01:00
Antonio Navarro Perez
7e488c1c16 Ensure that folder exists before moving ipfs binary.
On macOS Monterey there is no /usr/local/bin folder and we need to
create it.
2022-05-06 15:29:05 +02:00
Volker Mische
a049ba9d17
fix: installation without sudo (#8715)
* fix: installation without sudo

I think it's good practice that users don't need to run `sudo`
to install something just to try it out. With this change, the
local bin directory is tried first, which usually is also in the
`PATH`. This way the installation script can be run without
`sudo` and should still work.

* fix: try local path last and support spaces in $HOME

Try the `$HOME/.local/bin` path last, so that the script is backwards
compatible. Also make sure that it works even if there are spaces in
the directory set by `$HOME`.
2022-02-16 08:54:29 -05:00
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