diff options
author | Aaron W. Swenson <aaron@grandmasfridge.org> | 2018-01-14 11:37:23 -0500 |
---|---|---|
committer | Aaron W. Swenson <aaron@grandmasfridge.org> | 2018-01-14 11:37:23 -0500 |
commit | ac185cf15ec0c3276511786fffc871c64c81312c (patch) | |
tree | 949314f02b61dff59c310f5b913b305309b22daf | |
parent | Just try to update symlink (diff) | |
download | eselect-ac185cf15ec0c3276511786fffc871c64c81312c.tar.gz eselect-ac185cf15ec0c3276511786fffc871c64c81312c.tar.bz2 eselect-ac185cf15ec0c3276511786fffc871c64c81312c.zip |
Die if we can’t remove badsym
If badsym can’t be removed, it’ll gum up the works later when trying
to create links, especially since they don’t point anywhere.
-rw-r--r-- | postgresql.eselect | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/postgresql.eselect b/postgresql.eselect index 84a6e0d..099cbda 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -389,7 +389,8 @@ do_update() { for badsym in $(find "${USR_PATH}"/include/postgresql-* -type l \ -exec test ! -e {} \; -print) do - rm "${badsym}" + # If $badsym can't be removed, we're gonna have a bad time + rm "${badsym}" || die -q "Manual rm required: ${badsym}" done ## End Antiquity Clean Up |