#!/bin/sh set -e set -x [ ! -e authorized_keys.d/"$USER" ] cp ~/.ssh/authorized_keys authorized_keys.d/$USER git add authorized_keys.d/$USER git commit -m 'add self' git push