diff --git a/common/xbps-src/libexec/xbps-src-doextract.sh b/common/xbps-src/libexec/xbps-src-doextract.sh index b374946fcba..1b891d3460d 100755 --- a/common/xbps-src/libexec/xbps-src-doextract.sh +++ b/common/xbps-src/libexec/xbps-src-doextract.sh @@ -63,6 +63,8 @@ fi touch -f $XBPS_EXTRACT_DONE +[ -d $wrksrc ] && cd $wrksrc + # If template defines post_extract(), use it. if declare -f post_extract >/dev/null; then run_func post_extract