diff options
author | 2016-05-02 11:39:17 +0000 | |
---|---|---|
committer | 2016-05-02 11:51:57 +0000 | |
commit | cab6e87d8e388a4c5be61dbefc11c13cbdbe65de (patch) | |
tree | b74ff266190ad8f975dc308664f22c7e882cdd39 /scripts/packages | |
parent | a5004430338bc72817c751b77c914f514b19f10e (diff) |
installer: remove guard when removing the bazel symlink
Previously we were not removing a potential existing symlink.
If this is a directory then the rm will fail, leading to
a failure of the installer, whereas we would create a
wrong symlink with the previous code.
Fixes #1219.
--
MOS_MIGRATED_REVID=121262370
Diffstat (limited to 'scripts/packages')
-rwxr-xr-x | scripts/packages/template_bin.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/packages/template_bin.sh b/scripts/packages/template_bin.sh index 81ddc85e97..5b1cfa943c 100755 --- a/scripts/packages/template_bin.sh +++ b/scripts/packages/template_bin.sh @@ -133,9 +133,7 @@ test_write "${bazelrc}" echo -n "Uncompressing." # Cleaning-up, with some guards. -if [ -f "${bin}/bazel" ]; then - rm -f "${bin}/bazel" -fi +rm -f "${bin}/bazel" if [ -d "${base}" -a -x "${base}/bin/bazel" ]; then rm -fr "${base}" fi |