From ae71a698f5410ed5757511e5b58a1a56ceab64ec Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:13 +0200 Subject: [PATCH] add optional sudo for work --- dot | 1 + 1 file changed, 1 insertion(+) diff --git a/dot b/dot index 7993255..bfcd9f0 100755 --- a/dot +++ b/dot @@ -18,6 +18,7 @@ include() { func() { if is_function $(echo "super_$2"); then + [ "${DO_SUDO:-yes}" = "yes" ] || return 0 sudo sh -c ". $1 && super_$2" fi is_function $2 && $2