From c4f105e14859dd518b5c205920c9c0281817407c Mon Sep 17 00:00:00 2001 From: still-flow <46608177+still-flow@users.noreply.github.com> Date: Thu, 8 Oct 2020 22:21:34 +0300 Subject: [PATCH] pushd, popd -> cd --- hyperroid/copy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperroid/copy.sh b/hyperroid/copy.sh index 67c40875..aaf9b33f 100755 --- a/hyperroid/copy.sh +++ b/hyperroid/copy.sh @@ -11,8 +11,8 @@ mkdir -p app/src/main/res/raw/ # language-data.cpp is a make dependency of autohdr.h, so it's generated as well if [ ! -f ../autohdr.h ]; then echo "generating autohdr.h..." - pushd .. + LAST_PWD=$(pwd); cd .. make -f Makefile.simple autohdr.h - popd + cd $LAST_PWD fi