git init update

This commit is contained in:
2025-07-04 13:32:21 +09:00
parent de041226ae
commit 1121a3f818

View File

@@ -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;