testing sudo function
authorChris Koeritz <fred@gruntose.com>
Sun, 31 May 2020 02:54:57 +0000 (22:54 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 31 May 2020 02:54:57 +0000 (22:54 -0400)
scripts/core/functions.sh

index 647c8ef9b90370dbd76eaf59aa2bf374b7ee3634..baf8a1eab4f48d178ac86fd1f024968a9cbee592 100644 (file)
@@ -433,10 +433,11 @@ if [ -z "$skip_all" ]; then
     # aliases).  we turn off the expand_aliases shell option to avoid passing
     # the sentinel, which ensures aliases do get recreated for the new user.
     BUILD_VARS_LOADED= \
-    CORE_VARIABLES_LOADED= \
-    FEISTY_MEOW_SCRIPTS_LOADED= \
-    function_sentinel= \
-    MAIL= \
+      CORE_VARIABLES_LOADED= \
+      FEISTY_MEOW_SCRIPTS_LOADED= \
+      function_sentinel= \
+      MAIL= \
+      HOME= \
     bash +O expand_aliases -c "$cmd"
     retval=$?
     restore_terminal_title