|
@@ -3,10 +3,13 @@
|
|
# SC2034: "Variable appears unused. Verify it or export it."
|
|
# SC2034: "Variable appears unused. Verify it or export it."
|
|
# Those are intentional here, as the file is meant to be included elsewhere.
|
|
# Those are intentional here, as the file is meant to be included elsewhere.
|
|
|
|
|
|
-SUDO="sudo"
|
|
|
|
|
|
+# NOTE: If using another privilege escalation binary make sure it is configured or has the appropiate flag
|
|
|
|
+# to keep the current environment variables in the launched process (in sudo's case this is achieved
|
|
|
|
+# through the -E flag described in sudo(8).
|
|
|
|
+SUDO="sudo -E"
|
|
|
|
|
|
if [ "$(uname -s)" = "SerenityOS" ]; then
|
|
if [ "$(uname -s)" = "SerenityOS" ]; then
|
|
- SUDO="pls"
|
|
|
|
|
|
+ SUDO="pls -E"
|
|
fi
|
|
fi
|
|
|
|
|
|
die() {
|
|
die() {
|