Skip to content

Commit 238eb8e

Browse files
committed
ci: Move away from using dir stacks
Addressing a comment to move away from dir stacks in our install scripts. We now store the start directly before we move the build directory and cd back to that explicitly. Signed-off-by: Jack Thomson <[email protected]>
1 parent f7ea840 commit 238eb8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/hiding_ci/build_and_install_kernel.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ check_ubuntu() {
2424
tidy_up() {
2525
# Some cleanup after we are done
2626
echo "Cleaning up.."
27-
popd
27+
cd $START_DIR
2828
rm -rf $TMP_BUILD_DIR
2929
}
3030

@@ -103,7 +103,8 @@ KERNEL_CONFIG_OVERRIDES=$(pwd)/kernel_config_overrides
103103

104104
TMP_BUILD_DIR=$(mktemp -d -t kernel-build-XXXX)
105105

106-
pushd .
106+
START_DIR=$(pwd)
107+
107108
cd $TMP_BUILD_DIR
108109

109110
echo "Cloning kernel repository into" $TMP_BUILD_DIR

0 commit comments

Comments
 (0)