aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kasak <dkasak@termina.org.uk>2017-07-14 18:47:37 +0200
committerDenis Kasak <dkasak@termina.org.uk>2017-07-14 22:57:50 +0200
commit516fcb6d39f48ae0bc6d833181e5d5faeb125412 (patch)
treecdaade81242f72d8c220f6c1d0e18387ae0e4f01
parentf0bd11bfa73d02a1f46a7933ca6f6f9a1c6ffd08 (diff)
downloadrofi-pass-516fcb6d39f48ae0bc6d833181e5d5faeb125412.tar.gz
Exit if cd fails.
-rwxr-xr-xrofi-pass2
1 files changed, 1 insertions, 1 deletions
diff --git a/rofi-pass b/rofi-pass
index 29a87a5..d5739d3 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -542,7 +542,7 @@ listgpg () {
insertPass () {
url=$(xclip -o)
- cd "${root}"
+ cd "${root}" || exit
name="$(listgpg | rofi -dmenu -format 'f' -mesg "Type name, make sure it is unique" -p "> ")"
# name="$(echo -e "$(list_passwords 2>/dev/null)" | rofi -dmenu -mesg "Type name, make sure it is unique" -p "> ")"
val=$?