Permalink
Browse files

Hint user to use sudo if running build as unprivileged user

  • Loading branch information...
dLobatog committed Mar 14, 2015
1 parent 6a79743 commit ff0b9621da92e98ff837da7bce800d34768111f4
Showing with 6 additions and 2 deletions.
  1. +6 −2 tools/build.sh
View
@@ -1,6 +1,6 @@
#!/bin/bash
# _ _
# | |_| |__ ___ ___ __ _
# _ _
# | |_| |__ ___ ___ __ _
# | __| '_ \ / _ \/ __/ _` |
# | |_| | | | __/ (_| (_| |
# \__|_| |_|\___|\___\__,_|
@@ -87,6 +87,10 @@ case "$1" in
install)
if [ -e "bin/theca" ]; then
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"
else
err "bin/theca doesn't exist (did you run ./build.sh build [--release]?)"

0 comments on commit ff0b962

Please sign in to comment.