From cb6bf22aa1aa8b3ef0d03624854d449cc316bbb1 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 31 Aug 2022 11:37:53 +0200 Subject: [PATCH] builder: bring back changing directory to original $(pwd) but check for its existence first --- builder.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/builder.sh b/builder.sh index 68bb875..d911c21 100755 --- a/builder.sh +++ b/builder.sh @@ -2756,5 +2756,6 @@ esac if [ -f "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES" -a "$REMOVE_BUILD_REQUIRES" != "" ]; then rm "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES" fi +test -d "$__PWD" && cd "$__PWD" # vi:syntax=sh:ts=4:sw=4:noet -- 2.43.0