diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9a136d5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,21 @@ +# Keychain project: enforce consistent Unix LF line endings on all platforms +# Normalize all text files to LF on commit and checkout +* text eol=lf + +# (Redundant clarity rules; kept for readability and future maintenance) +*.sh text eol=lf +*.md text eol=lf +*.txt text eol=lf +*.pod text eol=lf +*.in text eol=lf +*.spec.in text eol=lf +Makefile text eol=lf + +# If any binary assets are added later, declare them explicitly, e.g.: +# *.png binary +# *.jpg binary +# *.gif binary + +# Prevent accidental CRLF introduction in scripts that may be generated +scripts/* text eol=lf +docs/* text eol=lf diff --git a/keychain.sh b/keychain.sh index 9dae7d3..7840968 100755 --- a/keychain.sh +++ b/keychain.sh @@ -337,7 +337,7 @@ startagent_gpg() { [ -n "${timeout}" ] && gpg_opts="$gpg_opts --default-cache-ttl $(( timeout * 60 )) --max-cache-ttl $(( timeout * 60 ))" $ssh_spawn_gpg && gpg_opts="$gpg_opts --enable-ssh-support" mesg "Starting gpg-agent..." - # shellcheck disable=SC2086 # this is intentionalh + # shellcheck disable=SC2086 # this is intentional pidfile_out="$(gpg-agent --sh $gpg_opts)" return $? fi