This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.pass: fix TPM PIN prompt for non-decrypt commands, remove set -x

+13 -2
+13 -2
tools/pass/flake-module.nix
··· 40 40 ... 41 41 }: 42 42 '' 43 - set -x 44 43 ${envString} 45 44 ${preHook} 46 45 ··· 87 86 if [[ "''${1:-}" == "show" ]]; then 88 87 decrypt_target="''${2:-}" 89 88 elif [[ -n "''${1:-}" ]] && [[ "''${1:-}" != -* ]] && [[ "''${1:-}" != "otp" ]]; then 90 - decrypt_target="''${1:-}" 89 + # Skip passage subcommands that don't need decryption 90 + case "''${1:-}" in 91 + ls|find|git|insert|generate|rm|mv|cp|help|version|init) 92 + ;; 93 + edit|grep|reencrypt) 94 + # These commands do decrypt, prompt with command as target 95 + decrypt_target="''${2:-''${1:-}}" 96 + ;; 97 + *) 98 + # Bare pass-name (implicit show) 99 + decrypt_target="''${1:-}" 100 + ;; 101 + esac 91 102 fi 92 103 93 104 if [[ -n "$decrypt_target" ]]; then