diff --git a/deploy-tools.sh b/deploy-tools.sh old mode 100644 new mode 100755 index 5ecd950..ea16f18 --- a/deploy-tools.sh +++ b/deploy-tools.sh @@ -1,11 +1,10 @@ #!/bin/sh -if [ ! "$UID" = "0" ]; then - echo "# script must be ran as root" - exit 1 +if (( $EUID != 0 )); then + echo "Please run as root" + exit fi - case $1 in router) cp tools/router.sh /usr/local/bin/router.sh