diff options
Diffstat (limited to 'ssh-hook.sh')
-rwxr-xr-x | ssh-hook.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh-hook.sh b/ssh-hook.sh index 2980c03..6b34258 100755 --- a/ssh-hook.sh +++ b/ssh-hook.sh @@ -8,6 +8,10 @@ if [ -z "$SSH_ORIGINAL_COMMAND" ]; then git fetch --prune --force git reset --hard origin/master + echo "Clean up and generate" + git clean -xdff + ./generate.sh + echo "Deploy ssh configuration" cp ssh/config ~/.ssh/config cp ssh/authorized_keys ~/.ssh/authorized_keys |