]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: bring back changing directory to original $(pwd) but check for its existence...
authorJan Palus <atler@pld-linux.org>
Wed, 31 Aug 2022 09:37:53 +0000 (11:37 +0200)
committerJan Palus <atler@pld-linux.org>
Wed, 31 Aug 2022 09:37:53 +0000 (11:37 +0200)
builder.sh

index 68bb875cefd28034cd1956df8a4592cf195e3889..d911c2191a473dee1b43437f2e555b7df33c7395 100755 (executable)
@@ -2756,5 +2756,6 @@ esac
 if [ -f "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES" -a "$REMOVE_BUILD_REQUIRES" != "" ]; then
        rm "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES"
 fi
 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
 
 # vi:syntax=sh:ts=4:sw=4:noet
This page took 0.113703 seconds and 4 git commands to generate.