From c604774abfbeb2a6dd35481476a741c2b783fff5 Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Thu, 8 Sep 2016 10:31:48 +0200 Subject: [PATCH] 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 --- cmd/ipfs/dist/install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/ipfs/dist/install.sh b/cmd/ipfs/dist/install.sh index f86881afef03..ee059e4e1779 100755 --- a/cmd/ipfs/dist/install.sh +++ b/cmd/ipfs/dist/install.sh @@ -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" @@ -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"