1
0
Fork 0
mirror of synced 2024-11-22 23:35:35 -05: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,7 +91,10 @@ alias chown='chown --preserve-root -v'
# not aliasing rm -i, but if safe-rm is available, use condom.
if (( ${+commands[safe-rm]} )); then
alias rm='safe-rm'
# 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'
fi
fi