shell/*: fix most shellcheck errors

This commit is contained in:
Felix Buehler 2021-12-06 12:41:02 +01:00
parent ced309e5a4
commit 0d8a6f0c01
9 changed files with 67 additions and 53 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Assert an ssh-agent (which is empty at the beginning)
if command -v keychain 2>&1 >/dev/null; then
eval $(keychain -q --nogui --agents ssh --timeout 600 --eval)
if command -v keychain > /dev/null 2>&1; then
eval "$(keychain -q --nogui --agents ssh --timeout 600 --eval)"
fi