diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-04-22 10:02:39 +0200 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-04-22 10:02:39 +0200 |
commit | 07c61562b4c9ba449e85508da71320f0e4fa3e09 (patch) | |
tree | c559dfb0b53f2c08e82c995ff0b38bd4a7762169 /bin/common | |
parent | c822f6016fd9e457252b2f37dfa0be3cde9fefc3 (diff) |
checkpoint
Diffstat (limited to 'bin/common')
-rwxr-xr-x | bin/common/gt-cmd | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/common/gt-cmd b/bin/common/gt-cmd index 56b8df6..ebfe301 100755 --- a/bin/common/gt-cmd +++ b/bin/common/gt-cmd @@ -34,8 +34,11 @@ then if ! ssh-add -L | grep "$(cat "$Keyfile")" > /dev/null then - printf '%s: '\''%s'\'' not in ssh-agent\n' "$repo_pretty" "$r" - exit 1 + if ! keyadd "$r" > /dev/null 2>&1 + then + printf '%s: '\''%s'\'' not in ssh-agent\n' "$repo_pretty" "$r" + exit 1 + fi fi fi |