Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Hint user to use sudo if running build as unprivileged user
Browse files Browse the repository at this point in the history
  • Loading branch information
dLobatog committed Mar 14, 2015
1 parent 6a79743 commit ff0b962
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/build.sh
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# _ _ # _ _
# | |_| |__ ___ ___ __ _ # | |_| |__ ___ ___ __ _
# | __| '_ \ / _ \/ __/ _` | # | __| '_ \ / _ \/ __/ _` |
# | |_| | | | __/ (_| (_| | # | |_| | | | __/ (_| (_| |
# \__|_| |_|\___|\___\__,_| # \__|_| |_|\___|\___\__,_|
Expand Down Expand Up @@ -87,6 +87,10 @@ case "$1" in
install) install)
if [ -e "bin/theca" ]; then if [ -e "bin/theca" ]; then
cp bin/theca $INSTALL_DIR/ cp bin/theca $INSTALL_DIR/
if [ $? -ne 0 ]; then
p "theca could not be copied to $INSTALL_DIR"
err "please rerun the script with sudo if you do not have write permissions in $INSTALL_DIR"
fi
p "copied bin/theca -> $INSTALL_DIR/theca" p "copied bin/theca -> $INSTALL_DIR/theca"
else else
err "bin/theca doesn't exist (did you run ./build.sh build [--release]?)" err "bin/theca doesn't exist (did you run ./build.sh build [--release]?)"
Expand Down

0 comments on commit ff0b962

Please sign in to comment.