summaryrefslogtreecommitdiffhomepage
path: root/tools/go_branch.sh
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-11-23 11:03:28 -0800
committergVisor bot <gvisor-bot@google.com>2020-11-23 11:05:23 -0800
commit5212b4f7b28ddea466ccb50085da2b0368029d19 (patch)
treea0c762af5c552246d9110b63ee7241e833fd2d46 /tools/go_branch.sh
parent60ae6c4d83d432ff5b352a649757c7bd92073053 (diff)
Don't rely on HOME for tools/go_branch.sh
PiperOrigin-RevId: 343885770
Diffstat (limited to 'tools/go_branch.sh')
-rwxr-xr-xtools/go_branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/go_branch.sh b/tools/go_branch.sh
index 71d036b12..768a37b9a 100755
--- a/tools/go_branch.sh
+++ b/tools/go_branch.sh
@@ -39,7 +39,7 @@ declare tmp_dir
tmp_dir=$(mktemp -d)
readonly tmp_dir
finish() {
- cd # Leave tmp_dir.
+ cd / # Leave tmp_dir.
rm -rf "${tmp_dir}"
}
trap finish EXIT