improve next-in-path handling, fix line endings

This commit is contained in:
Alexander Gehrke 2026-01-11 15:33:53 +01:00
parent f546b49599
commit 31a59f0207
14 changed files with 62 additions and 48 deletions

View file

@ -7,6 +7,8 @@ if [[ $program == "envwrap" ]]; then
exit 0
fi
envwrapconf=${XDG_CONFIG_HOME:-$HOME/.config}/envwrap/$program
envwrapconf=${XDG_CONFIG_HOME:-$HOME/.config}/envwrap/$program
[[ -e $envwrapconf ]] && source $envwrapconf
$(next-in-path "$program" $0) "$@"
next=$(next-in-path "$program" $0)
if (( $? != 0 )); then exit 1; fi
$next "$@"