[utility] fix safe-rm condom on opensuse
This commit is contained in:
parent
0dc32b8957
commit
bb680b3742
@ -91,7 +91,10 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user