aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 09:56:06 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 09:56:06 +0000
commitfd0a3ce1fa48d19928addd5f912919ff638d097e (patch)
treed2e8e029bd360400d55aaf7fc0f0e31fa2619e4b
parent4e8a730edd14637232796d2a5549949d406ee7f9 (diff)
downloadcpt-fd0a3ce1fa48d19928addd5f912919ff638d097e.tar.gz
doas: Fix path issue
FossilOrigin-Name: 7ad48bac5850e90bfc1129cfd9db37b2a4cea5d90f8fdaad9008492ace02ef8d
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index f145e16..d8996a3 100755
--- a/kiss
+++ b/kiss
@@ -54,7 +54,7 @@ as_root() {
case $su in
*sudo) sudo -u "${user:-root}" -E sh -c "$*" ;;
- *doas) doas -u "${user:-root}" sh -c "$*" ;;
+ *doas) doas -u "${user:-root}" sh -c "KISS_PATH='$KISS_PATH' $*" ;;
*) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
esac