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>
Stephan Kulla committed
Sep 8, 2016 at 10:31 UTC
7f194c972162bdadf3f1400c94e6597c50e4219c
1 file changed
+3
-4
cmd/ipfs/dist/install.sh
+3
-4
@@ -1,4 +1,7 @@
1
#!/bin/sh
2
+#
3
+# Installation script for ipfs. It tries to move $bin in one of the
4
+# directories stored in $binpaths.
5
6
bin=ipfs
7
binpaths="/usr/local/bin /usr/bin"
@@ -7,10 +10,6 @@ binpaths="/usr/local/bin /usr/bin"
10
# because of missing write permissions.
11
is_write_perm_missing=""
12
10
-# this script is currently brain dead.
11
-# it merely tries two locations.
12
-# in the future maybe use value of $PATH.
13
-
13
for binpath in $binpaths; do
14
if mv -t "$binpath" "$bin" 2> /dev/null; then
15
echo "Moved $bin to $binpath"