From 060c93c1d6075c08277d3861d3cac93a7c3970db Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 14 Aug 2022 21:20:37 +0200 Subject: [PATCH] Fixed fast settings "norootwarn" to actually apply --- sos-git.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sos-git.sh b/sos-git.sh index 590352a..d9ee829 100755 --- a/sos-git.sh +++ b/sos-git.sh @@ -282,12 +282,12 @@ function checkRootUser() { function checkFastSettings() { if [ -f "$HOME/.sostools/git/norootwarn" ] || [ -d "$HOME/.sostools/git/norootwarn" ]; then rm -rf "$HOME/.sostools/git/norootwarn" - echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARN=true" &> "$HOME/.sostools/git/sos-git.conf.d/norootwarning.conf" + echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARNING=true" &> "$HOME/.sostools/git/sos-git.conf.d/norootwarning.conf" fi if [ "$(whoami)" == "root" ]; then if [ -f "/etc/sostools/git/norootwarn" ] || [ -d "/etc/sostools/git/norootwarn" ]; then rm -rf "/etc/sostools/git/norootwarn" - echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARN=true" &> "/etc/sostools/git/sos-git.conf.d/norootwarning.conf" + echo -e "# This file has been generated by sos-git\n# because of the use of fast settings.\nSOSGIT_NOROOTWARNING=true" &> "/etc/sostools/git/sos-git.conf.d/norootwarning.conf" fi fi }