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