Skip to content

Commit

Permalink
[bin/qrencode-keys] encode the file contents instead of the filename
Browse files Browse the repository at this point in the history
  • Loading branch information
pSub committed Jan 1, 2025
1 parent aa0301d commit ef7b812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bin/qrencode-keys
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ trap cleanup SIGINT

for PUB_KEY_PATH in "$SSH_DIR"/id*.pub; do
PUB_KEY=$(basename "$PUB_KEY_PATH")
qrencode "$PUB_KEY" -o "$QR_DIR"/"$PUB_KEY".svg
qrencode -r "$PUB_KEY" -o "$QR_DIR"/"$PUB_KEY".svg
PRIV_KEY=${PUB_KEY:r}
qrencode "$PRIV_KEY" -o "$QR_DIR"/"$PRIV_KEY".svg
qrencode -r "$PRIV_KEY" -o "$QR_DIR"/"$PRIV_KEY".svg
done

montage -label %f \
Expand Down

0 comments on commit ef7b812

Please sign in to comment.