diff --git a/script/installpackages b/script/installpackages index aee5f48..e9c5bc0 100755 --- a/script/installpackages +++ b/script/installpackages @@ -2,7 +2,7 @@ # # Install packages for a new Arch or Manjaro installation. Requires sudo -if [[ $euid > 0 ]]; then +if [[ $EUID > 0 ]]; then echo "requires administrative privileges" exit 1 fi diff --git a/script/wgdown b/script/wgdown index 4fe4f66..842e8ac 100755 --- a/script/wgdown +++ b/script/wgdown @@ -4,7 +4,7 @@ set -e -if [[ $euid > 0 ]]; then +if [[ $EUID > 0 ]]; then echo "requires administrative privileges" exit 1 fi diff --git a/script/wgup b/script/wgup index 6fef1f8..670f73a 100755 --- a/script/wgup +++ b/script/wgup @@ -4,7 +4,7 @@ set -e -if [[ $euid > 0 ]]; then +if [[ $EUID > 0 ]]; then echo "requires administrative privileges" exit 1 fi