diff options
author | Daniel Hahler <git@thequod.de> | 2017-11-18 18:44:37 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2017-11-18 18:44:37 +0100 |
commit | 283a70768fd06ef6d503d0dad48fef95ed6683f1 (patch) | |
tree | 2f05c79a3be3aa58e0b73ea5331db6aca6a1dd9a | |
parent | f1708decbd2cd632e8528ae8d1eecf9592d04975 (diff) | |
download | rofi-pass-283a70768fd06ef6d503d0dad48fef95ed6683f1.tar.gz |
checkIfPass: remove unnecessary `rm`
Uses `>|` to work also with the `noclobber` option being enabled.
-rwxr-xr-x | rofi-pass | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -65,8 +65,7 @@ doClip () { } checkIfPass () { - rm -f "$HOME/.cache/rofi-pass/last_used" - printf '%s\n' "${root}: $selected_password" > "$HOME/.cache/rofi-pass/last_used" + printf '%s\n' "${root}: $selected_password" >| "$HOME/.cache/rofi-pass/last_used" } |