Skip to content

Commit

Permalink
install/uninstall: add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Feb 11, 2022
1 parent c5b5a15 commit a0e6148
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
# POSIX

dest_path="/usr/local/bin"
# in case we're not root, just default to the home directory
if [ "$(id -u)" -ne 0 ]; then
dest_path="$HOME/.local/bin"
dest_path="${HOME}/.local/bin"
fi

verbose=0
Expand All @@ -36,7 +37,7 @@ show_help() {
install -p /usr/local/bin
Options:
--path/-p: path where to deploy the files (default /usr/local)
--path/-p: path where to deploy the files (default /usr/local/bin if root, ~/.local/bin if not)
--help/-h: show this message
-v: show more verbosity
EOF
Expand Down
5 changes: 3 additions & 2 deletions uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
# POSIX

dest_path="/usr/local/bin"
# in case we're not root, just default to the home directory
if [ "$(id -u)" -ne 0 ]; then
dest_path="$HOME/.local/bin"
dest_path="${HOME}/.local/bin"
fi

verbose=0
Expand All @@ -36,7 +37,7 @@ show_help() {
uninstall -p /usr/local/bin
Options:
--path/-p: path where to deploy the files (default /usr/local)
--path/-p: path where to deploy the files (default /usr/local/bin if root, ~/.local/bin if not)
--help/-h: show this message
-v: show more verbosity
EOF
Expand Down

0 comments on commit a0e6148

Please sign in to comment.