summaryrefslogtreecommitdiff
path: root/ssh-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-hook.sh')
-rwxr-xr-xssh-hook.sh4
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