fixincludes: Update pwd.
authorMartin Liska <mliska@suse.cz>
Fri, 4 Feb 2022 09:24:51 +0000 (10:24 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 4 Feb 2022 12:53:23 +0000 (13:53 +0100)
fixincludes/ChangeLog:

* fixinc.in: Use cd OLDDIR instead of cd .. .

fixincludes/fixinc.in

index 0c30664..0bd8027 100755 (executable)
@@ -258,9 +258,10 @@ then echo "All directories (including links to directories):"
      echo $all_dirs
 fi
 
+OLDDIR=`${PWDCMD}`
 cd $LIB
 echo "$all_dirs" | xargs mkdir -p
-cd ..
+cd ${OLDDIR}
 
 mkdir $LIB/root