Prevent root using clone|pull|checkout commands
This commit is contained in:
parent
f125413729
commit
20e095019a
3 changed files with 15 additions and 0 deletions
|
@ -24,6 +24,11 @@ printerr() {
|
|||
|
||||
##
|
||||
# main
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
printerr "you must be a user other than root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/isportzap-member; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
exit 1
|
||||
|
|
|
@ -25,6 +25,11 @@ printerr() {
|
|||
|
||||
##
|
||||
# main
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
printerr "you must be a user other than root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/isportzap-member; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
exit 1
|
||||
|
|
|
@ -23,6 +23,11 @@ printerr() {
|
|||
|
||||
##
|
||||
# main
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
printerr "you must be a user other than root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/isportzap-member; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue