plugins/bashmark: resolves conflict between noclobber and bashmark (#127)

Fixes #50
This commit is contained in:
Jason Verbeek 2020-02-12 06:46:00 +01:00 committed by GitHub
parent ec1921490f
commit 098e3ff368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -186,7 +186,7 @@ function _purge_line {
trap "/bin/rm -f -- '$t'" EXIT
# purge line
sed "/$2/d" "$1" > "$t"
sed "/$2/d" "$1" >| "$t"
/bin/mv "$t" "$1"
# cleanup temp file