aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kasak <dkasak@termina.org.uk>2017-07-14 18:35:43 +0200
committerDenis Kasak <dkasak@termina.org.uk>2017-07-14 22:56:11 +0200
commitb49b409187f53fa200922199c90fecd29240ec5e (patch)
treee2f1a1d5a21c5ee34641ecacb322b953b920e05f
parentb9b8a57cf02f4373ad9e1107b1bbd14409db1900 (diff)
downloadrofi-pass-b49b409187f53fa200922199c90fecd29240ec5e.tar.gz
Specify -r to read to handle backslashes properly.
-rwxr-xr-xrofi-pass2
1 files changed, 1 insertions, 1 deletions
diff --git a/rofi-pass b/rofi-pass
index 02b8dff..e2ad204 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -52,7 +52,7 @@ list_passwords() {
cd "${root}" || exit
find -L . -iname '*.gpg' -printf '%P\n' | \
- while read filename; do
+ while read -r filename; do
echo "${filename%.gpg}"
done
}