Don't rely on HOME for tools/go_branch.sh
PiperOrigin-RevId: 343885770
This commit is contained in:
parent
60ae6c4d83
commit
5212b4f7b2
|
@ -39,7 +39,7 @@ declare tmp_dir
|
||||||
tmp_dir=$(mktemp -d)
|
tmp_dir=$(mktemp -d)
|
||||||
readonly tmp_dir
|
readonly tmp_dir
|
||||||
finish() {
|
finish() {
|
||||||
cd # Leave tmp_dir.
|
cd / # Leave tmp_dir.
|
||||||
rm -rf "${tmp_dir}"
|
rm -rf "${tmp_dir}"
|
||||||
}
|
}
|
||||||
trap finish EXIT
|
trap finish EXIT
|
||||||
|
|
Loading…
Reference in New Issue