aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-11-18 20:42:25 +0100
committerGitHub <noreply@github.com>2017-11-18 20:42:25 +0100
commitcfc0b39f3ffb76916efea9e61157e8a983d78920 (patch)
treef862eec70c55735498d2ba99090137175c10b6c8
parent018b11a0b3818f789e7b53a2fabb5d43e2959d97 (diff)
downloadrofi-pass-cfc0b39f3ffb76916efea9e61157e8a983d78920.tar.gz
Update rofi-pass
There are occasions when $? shows the exit code of something else. While this is not one of these situations I'd rather have this consistent.
-rwxr-xr-xrofi-pass3
1 files changed, 2 insertions, 1 deletions
diff --git a/rofi-pass b/rofi-pass
index 3eaed76..883ef60 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -415,7 +415,8 @@ typeMenu () {
local -a keys=(${!stuff[@]})
keys=(${keys[@]/$AUTOTYPE_field})
typefield=$({ echo ${AUTOTYPE_field} ; printf '%s\n' "${keys[@]}" | sort; } | _rofi -dmenu -p "Choose Field to type > ")
- if [[ $? -eq 1 ]]; then
+ typefield_exit=$?
+ if [[ $typefield_exit -eq 1 ]]; then
exit
fi
case "$typefield" in