kiss: update sls syntax

This commit is contained in:
illiliti 2020-09-01 07:19:02 +03:00
parent e9197fe881
commit 42163ae1f2

3
kiss
View File

@ -56,8 +56,7 @@ as_root() {
[ "$uid" = 0 ] || log "Using '${su:-su}' (to become ${user:=root})" [ "$uid" = 0 ] || log "Using '${su:-su}' (to become ${user:=root})"
case ${su##*/} in case ${su##*/} in
doas|sudo) "$su" -u "$user" -- env "$@" ;; doas|sudo|sls) "$su" -u "$user" -- env "$@" ;;
sls) "$su" -u "$user" -c -- env "$@" ;;
su) "$su" -c "env $* <&3" "$user" 3<&0 </dev/tty ;; su) "$su" -c "env $* <&3" "$user" 3<&0 </dev/tty ;;
*) die "Invalid KISS_SU value: $su (valid: doas, sudo, sls, su)" *) die "Invalid KISS_SU value: $su (valid: doas, sudo, sls, su)"
esac esac