aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-11-18 20:34:02 +0100
committerGitHub <noreply@github.com>2017-11-18 20:34:02 +0100
commitfd55958b7f00aa6d124c641d7be7590aeb7c6084 (patch)
tree2f05c79a3be3aa58e0b73ea5331db6aca6a1dd9a
parentf1708decbd2cd632e8528ae8d1eecf9592d04975 (diff)
parent283a70768fd06ef6d503d0dad48fef95ed6683f1 (diff)
downloadrofi-pass-fd55958b7f00aa6d124c641d7be7590aeb7c6084.tar.gz
Merge pull request #105 from blueyed/checkIfPass-no-rm
checkIfPass: remove unnecessary `rm`
-rwxr-xr-xrofi-pass3
1 files changed, 1 insertions, 2 deletions
diff --git a/rofi-pass b/rofi-pass
index 0f3edc2..5668eef 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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"
}