pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/keychain/files
Module Name: pkgsrc
Committed By: vins
Date: Sat Nov 8 13:32:44 UTC 2025
Modified Files:
pkgsrc/security/keychain/files: startkeychain.sh
Log Message:
keychain: startkeychain: fix formatting and quoting
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/security/keychain/files/startkeychain.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/keychain/files/startkeychain.sh
diff -u pkgsrc/security/keychain/files/startkeychain.sh:1.1 pkgsrc/security/keychain/files/startkeychain.sh:1.2
--- pkgsrc/security/keychain/files/startkeychain.sh:1.1 Sat Nov 8 12:36:14 2025
+++ pkgsrc/security/keychain/files/startkeychain.sh Sat Nov 8 13:32:44 2025
@@ -26,9 +26,9 @@ case $1 in
exit 2 ;;
esac
-host = $(uname -n)
-ssh_env = ${HOME}/.keychain/${host}-sh
-gpg_env = ${HOME}/.keychain/${host}-sh-gpg
+host=$(uname -n)
+ssh_env="${HOME}/.keychain/${host}-sh"
+gpg_env="${HOME}/.keychain/${host}-sh-gpg"
# Test for SSHKEYS first. If empty, try GPGKEYS as fallback.
if [ -z "$SSHKEYS" ]; then
@@ -46,9 +46,14 @@ if [ -z "$SSHKEYS" ]; then
else
# Otherwise load both SSHKEYS and GPGKEYS (allow the latter to be empty).
keychain $KCHOPTS $SSHKEYS $GPGKEYS
- for file in ssh_env gpg_env; do
- [ -f "$file" ] && . $file
+ for file in $ssh_env $gpg_env; do
+ if [ -f "$file" ]; then
+ . $file
+ else
+ printf '%s\n' "warning: $file not found"
+ fi
done
+
fi
unset KCHOPTS SSHKEYS GPGKEYS host
Home |
Main Index |
Thread Index |
Old Index