1
0
Fork 0
mirror of synced 2024-06-01 14:51:11 -04:00

[utility] fix safe-rm condom on opensuse

This commit is contained in:
Matt Hamilton 2016-01-23 03:10:55 -05:00
parent 0dc32b8957
commit bb680b3742

View file

@ -91,8 +91,11 @@ alias chown='chown --preserve-root -v'
# not aliasing rm -i, but if safe-rm is available, use condom. # not aliasing rm -i, but if safe-rm is available, use condom.
if (( ${+commands[safe-rm]} )); then if (( ${+commands[safe-rm]} )); then
# check that it's the condom safe-rm, not the 'abs path' safe-rm
if [[ $(file =safe-rm | grep 'perl') ]]; then
alias rm='safe-rm' alias rm='safe-rm'
fi fi
fi
# #