summaryrefslogtreecommitdiff
path: root/add-self
diff options
context:
space:
mode:
Diffstat (limited to 'add-self')
-rwxr-xr-xadd-self8
1 files changed, 8 insertions, 0 deletions
diff --git a/add-self b/add-self
new file mode 100755
index 0000000..dae1fa5
--- /dev/null
+++ b/add-self
@@ -0,0 +1,8 @@
1#!/bin/sh
2set -e
3set -x
4[ ! -e authorized_keys.d/"$USER" ]
5cp ~/.ssh/authorized_keys authorized_keys.d/$USER
6git add authorized_keys.d/$USER
7git commit -m 'add self'
8git push