kiss: return to original dir before rerunning

This ensures that kiss is found if $0 is a relative path.
This commit is contained in:
phoebos 2022-10-04 13:43:35 +01:00
parent 7de9d70fe4
commit 967f62b3be
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

1
kiss
View File

@ -1952,6 +1952,7 @@ args() {
if ok "$1" && ! am_owner "$KISS_ROOT/"; then
trap_off
cd "$ppwd"
as_user env \
LOGNAME="$user" \
HOME="$HOME" \