]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: don't bother going back to original $(pwd) at the end of script
authorJan Palus <atler@pld-linux.org>
Tue, 30 Aug 2022 22:55:46 +0000 (00:55 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 30 Aug 2022 22:59:20 +0000 (00:59 +0200)
no real use for it as far as I can tell and ditching it avoids error if
original working directory does not exist anymore (because ie it
happened to be $RPM_BUILD_ROOT)

builder.sh

index 058d0de8ef942cef460202c18ad18b9e57a58b11..68bb875cefd28034cd1956df8a4592cf195e3889 100755 (executable)
@@ -2756,6 +2756,5 @@ esac
 if [ -f "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES" -a "$REMOVE_BUILD_REQUIRES" != "" ]; then
        rm "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES"
 fi
-cd "$__PWD"
 
 # vi:syntax=sh:ts=4:sw=4:noet
This page took 0.047253 seconds and 4 git commands to generate.