Skip to content

Instantly share code, notes, and snippets.

View Norbert515's full-sized avatar
😃

Norbert Kozsir Norbert515

😃
View GitHub Profile
@Norbert515
Norbert515 / ssh-deploy-key-wrapper.sh
Last active October 31, 2020 07:21 — forked from mpdude/ssh-deploy-key-wrapper.sh
Wrapper around `ssh` to pick the right one from several GitHub deploy keys
#!/bin/bash
# The last argument is the command to be executed on the remote end, which is something
# like "git-upload-pack 'webfactory/ssh-agent.git'". We need the repo path only, so we
# loop over this last argument to get the last part of if.
for last in ${!#}; do :; done
"I STARTED RUNNING" >> /home/runner/work/log.txt
$last >> /home/runner/work/log.txt