Fix -D in package()

When entering fakeroot makepkg calls itself with it's original args
causing it to cd again and error
This commit is contained in:
morganamilo 2023-10-20 22:33:57 +01:00
parent 331b277eea
commit 917b67f5d1

View file

@ -1027,7 +1027,7 @@ while [[ $1 ]]; do
shift shift
done done
if [[ -n $CHDIR ]]; then if (( ! INFAKEROOT )) && [[ -n $CHDIR ]]; then
cd_safe "$CHDIR" cd_safe "$CHDIR"
fi fi