diff --git a/update-keys.sh b/update-keys.sh index 0faa0ba..5d210a8 100755 --- a/update-keys.sh +++ b/update-keys.sh @@ -48,4 +48,10 @@ sort -u "$WORK_DIR/authorized_keys.tmp" > "$WORK_DIR/authorized_keys.wip" # cat "$WORK_DIR/authorized_keys.wip" +if [[ ! -d "$HOME/.ssh" ]]; then + + mkdir -p "$HOME/.ssh" + +fi + cp "$WORK_DIR/authorized_keys.wip" "$HOME/.ssh/authorized_keys" \ No newline at end of file