git init update
This commit is contained in:
@@ -25,7 +25,7 @@ GIT_COMMAND_BASE=("git");
|
||||
if [ -n "${USE_SUDO}" ]; then
|
||||
# if we are root -> ok, else we must be SUDO USER
|
||||
if [ "$(whoami)" = "root" ]; then
|
||||
GIT_COMMAND_BASE=("sudo" "-u" "${SUDO_USER}" "git");.
|
||||
GIT_COMMAND_BASE=("sudo" "-u" "${SUDO_USER}" "git");
|
||||
elif [ "$(whoami)" != "${SUDO_USER}" ]; then
|
||||
echo "Script must be run as root or as the ${SUDO_USER}";
|
||||
error=1;
|
||||
|
||||
Reference in New Issue
Block a user