[intel/repo] do not use $UID, which is bashism, rather use id -u

This commit is contained in:
Fabio Erculiani 2012-02-21 12:47:24 +01:00
parent 0e46952f23
commit ff65469ef9
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
# PLEASE NOTE: this script is called automatically by entropy and, unless
# requested otherwise, it should be NEVER EVER called by user.
[ "$UID" != "0" ] && echo && echo "Skipping update script, you are not root" && exit 0
[ "$(id -u)" != "0" ] && echo && echo "Skipping update script, you are not root" && exit 0
[ -z "$3" ] && echo "not enough parameters" && exit 1

View File

@ -20,7 +20,7 @@
# PLEASE NOTE: this script is called automatically by entropy and, unless
# requested otherwise, it should be NEVER EVER called by user.
[ "$UID" != "0" ] && echo && echo "Skipping update script, you are not root" && exit 0
[ "$(id -u)" != "0" ] && echo && echo "Skipping update script, you are not root" && exit 0
[ -z "$3" ] && echo "not enough parameters" && exit 1