diff --git a/rofi-pass b/rofi-pass index 2c5c25a..2dcb0b6 100755 --- a/rofi-pass +++ b/rofi-pass @@ -27,7 +27,7 @@ TIME=1 if [ "${gpg_agent_info}" -eq 0 ]; then ## Start a terminal emulator ## Create new tmux splits to ask for gpg passphrase - "${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION && tmux attach-session' & + "${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION' & # Minimum time to enter my passphrases sleep 5 @@ -63,8 +63,10 @@ if [ "${gpg_agent_info}" -eq 0 ]; then fi # If gpg-agent already have a key in cache {{{ -else +elif [ "${gpg_agent_info}" -gt 0 ]; then # Then, call real rofi-pass "${HOME}"/repos/rofi-pass/rofi-pass +else # Not supposed to happen + exit 2 fi # }}}