mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
plugins/bashmark: resolves conflict between noclobber and bashmark (#127)
Fixes #50
This commit is contained in:
@@ -186,7 +186,7 @@ function _purge_line {
|
|||||||
trap "/bin/rm -f -- '$t'" EXIT
|
trap "/bin/rm -f -- '$t'" EXIT
|
||||||
|
|
||||||
# purge line
|
# purge line
|
||||||
sed "/$2/d" "$1" > "$t"
|
sed "/$2/d" "$1" >| "$t"
|
||||||
/bin/mv "$t" "$1"
|
/bin/mv "$t" "$1"
|
||||||
|
|
||||||
# cleanup temp file
|
# cleanup temp file
|
||||||
|
Reference in New Issue
Block a user