feat: add lil' ssh debug log

This commit is contained in:
Strix 2023-10-22 17:59:48 +02:00
parent 468ac786a7
commit daa9d31097
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -13,10 +13,11 @@ if ! [ "$(id -u)" = "0" ]; then
fi
echo "testing git connection..."
if ! ssh git@git.ixvd.net &>/dev/null; then
echo "can't connect to git, please setup ssh"
if ! ssh git@git.ixvd.net &>/tmp/$$-ssh-output; then
echo "can't connect to git, please setup ssh (logs: /tmp/$$-ssh-output)"
exit 1
fi
rm /tmp/$$-ssh-output
## MAIN