summaryrefslogtreecommitdiff
path: root/ar/.local/bin/sshadd
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
commitcbd1d349a511da7a861540a5d6ea954d4d06871b (patch)
tree92b932d351a9474e7fd0f12c6c973274daaaa0d9 /ar/.local/bin/sshadd
parent74cb5de14fc06fe97b6fc306f6176f7d6b467b6b (diff)
updates
Diffstat (limited to 'ar/.local/bin/sshadd')
-rwxr-xr-xar/.local/bin/sshadd4
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/sshadd b/ar/.local/bin/sshadd
index 76797ba..ea389b9 100755
--- a/ar/.local/bin/sshadd
+++ b/ar/.local/bin/sshadd
@@ -1,11 +1,11 @@
#!/bin/sh
-SSH_KEY_DIR="${PASSWORD_STORE_DIR:-${HOME}/.local/share/.password-store}"
+ssh_key_dir="${PASSWORD_STORE_DIR:-${HOME}/.local/share/.password-store}"
temp_private_keys_list=$(mktemp)
# Ensure that filenames with spaces or other special characters are handled correctly.
-find "$SSH_KEY_DIR" -name "*.pub" | while IFS= read -r pub_file_path; do
+find "$ssh_key_dir" -name "*.pub" | while IFS= read -r pub_file_path; do
private_key_path="${pub_file_path%.pub}"
if [ -f "$private_key_path" ]; then
echo "$(basename "$private_key_path")" >>"$temp_private_keys_list"