diff options
-rwxr-xr-x[-rw-r--r--] | ssh/update-keys.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh/update-keys.sh b/ssh/update-keys.sh index 5a56392..28e5e75 100644..100755 --- a/ssh/update-keys.sh +++ b/ssh/update-keys.sh @@ -3,7 +3,7 @@ SSH_DIR="$HOME/.ssh" KEYS_DIR="$SSH_DIR/authorized_keys.d" -KEYS_FILE="SSH_DIR/authorized_keys" +KEYS_FILE="$SSH_DIR/authorized_keys" if [ ! -d "$KEYS_DIR" ]; then echo "creating $KEYS_DIR/" @@ -14,6 +14,6 @@ if [ -e "$KEYS_FILE" ]; then mv "$KEYS_FILE" "$KEYS_FILE.bak" fi -for file in "$KEYS_DIR/*.pub"; do +for file in "$KEYS_DIR/"*.pub; do cat "$file" >> "$KEYS_FILE" done |