From 917b67f5d13c94446d59d328cc6dfcb85a8a3073 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Fri, 20 Oct 2023 22:33:57 +0100 Subject: [PATCH] Fix -D in package() When entering fakeroot makepkg calls itself with it's original args causing it to cd again and error --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 2aaed18c..31cdf0d5 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1027,7 +1027,7 @@ while [[ $1 ]]; do shift done -if [[ -n $CHDIR ]]; then +if (( ! INFAKEROOT )) && [[ -n $CHDIR ]]; then cd_safe "$CHDIR" fi