]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
make.sh: Remove the PWD variable
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 21:22:23 +0000 (21:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jul 2024 15:21:20 +0000 (15:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index d411a1966de46be39c0c4b7418575c39d4194106..a26b47287740af088be30972d0d467fe0ebd3d12 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -45,8 +45,6 @@ HOST_ARCH="${HOSTTYPE}"
 LC_ALL=POSIX
 PS1='\u:\w$ '
 
-PWD=$(pwd)
-
 # Are we reading from/writing to a terminal?
 is_terminal() {
        [ -t 0 ] && [ -t 1 ] && [ -t 2 ]
@@ -2274,10 +2272,10 @@ build)
 
        print_headline "Checking Logfiles for new Files"
 
-       cd $BASEDIR
+       pushd "${BASEDIR}" &>/dev/null
        tools/checknewlog.pl
        tools/checkrootfiles
-       cd $PWD
+       popd &>/dev/null
 
        print_build_summary $(( SECONDS - START_TIME ))
        ;;