[intel/repo] do not use $UID, which is bashism, rather use id -u
This commit is contained in:
parent
0e46952f23
commit
ff65469ef9
@ -20,7 +20,7 @@
|
|||||||
# PLEASE NOTE: this script is called automatically by entropy and, unless
|
# PLEASE NOTE: this script is called automatically by entropy and, unless
|
||||||
# requested otherwise, it should be NEVER EVER called by user.
|
# 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
|
[ -z "$3" ] && echo "not enough parameters" && exit 1
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
# PLEASE NOTE: this script is called automatically by entropy and, unless
|
# PLEASE NOTE: this script is called automatically by entropy and, unless
|
||||||
# requested otherwise, it should be NEVER EVER called by user.
|
# 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
|
[ -z "$3" ] && echo "not enough parameters" && exit 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user