From: Mike Frysinger Date: Sun, 2 Feb 2014 02:22:23 +0000 (-0500) Subject: profile.d: use POSIX shell compliant style X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3dc91eea6dd234046d4f86af0e04ba4bac3fbefc;p=home.git profile.d: use POSIX shell compliant style --- diff --git a/.profile.d/ROOT-bash_profile b/.profile.d/ROOT-bash_profile index 86795d7..d1fb79b 100644 --- a/.profile.d/ROOT-bash_profile +++ b/.profile.d/ROOT-bash_profile @@ -1 +1 @@ -source ~/.bashrc +. ~/.bashrc diff --git a/.profile.d/keychain.sh b/.profile.d/keychain.sh index 436d21f..8934549 100644 --- a/.profile.d/keychain.sh +++ b/.profile.d/keychain.sh @@ -1,4 +1,5 @@ -if type -P keychain >/dev/null ; then - [ -e ~/.keychain/${HOSTNAME}-sh ] && source ~/.keychain/${HOSTNAME}-sh - [ -e ~/.keychain/${HOSTNAME}-sh-gpg ] && source ~/.keychain/${HOSTNAME}-sh-gpg +if type keychain >/dev/null 2>&1 ; then + : ${HOSTNAME:=$(hostname)} + [ -e ~/.keychain/${HOSTNAME}-sh ] && . ~/.keychain/${HOSTNAME}-sh + [ -e ~/.keychain/${HOSTNAME}-sh-gpg ] && . ~/.keychain/${HOSTNAME}-sh-gpg fi