Skip to content

Commit

Permalink
install.sh: Enhance comments of the script.
Browse files Browse the repository at this point in the history
I removed the comment about using $PATH since it leads to long
installation scripts (which violates the KISS principle). Cf. the
discussion on #2504

License: MIT
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
  • Loading branch information
kulla committed Sep 8, 2016
1 parent d6b6b20 commit c604774
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/ipfs/dist/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
#
# Installation script for ipfs. It tries to move $bin in one of the
# directories stored in $binpaths.

bin=ipfs
binpaths="/usr/local/bin /usr/bin"
Expand All @@ -7,10 +10,6 @@ binpaths="/usr/local/bin /usr/bin"
# because of missing write permissions.
is_write_perm_missing=""

# this script is currently brain dead.
# it merely tries two locations.
# in the future maybe use value of $PATH.

for binpath in $binpaths; do
if mv -t "$binpath" "$bin" 2> /dev/null; then
echo "Moved $bin into $binpath"
Expand Down

0 comments on commit c604774

Please sign in to comment.