From 8374e98494c71b73e85f83c17bc11e4c0253f9ff Mon Sep 17 00:00:00 2001 From: Didier Date: Sun, 3 Sep 2023 00:43:07 +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