summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-06-23 21:57:10 -0500
committersanine <sanine.not@pm.me>2023-06-23 21:57:10 -0500
commit32b3df2a7625efaa8c745bc7ccbdbb8366811465 (patch)
tree4a445b7db8d9bf8aeec9e10a33c9118a532e16b3
parent81a994a8b23c2d41a10e1cc9c0cee2797efe4693 (diff)
fix loop bugmain
-rwxr-xr-x[-rw-r--r--]ssh/update-keys.sh4
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