aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-11-16 21:28:09 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-11-16 21:28:09 -0500
commit0b63a7e78a407d4a8493f5b38231ac0eed404b9e (patch)
tree31baf93d476e1894efacb3fce125d229c2a259ed
parent6b503b8984cf3c5848522d7dcb6ccc72939eedc7 (diff)
downloadkeyringer-0b63a7e78a407d4a8493f5b38231ac0eed404b9e.tar.gz
keyringer-0b63a7e78a407d4a8493f5b38231ac0eed404b9e.tar.bz2
support symlinking keyringer into your ~/bin
-rwxr-xr-xkeyringer4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyringer b/keyringer
index cbb02a8..67e8109 100755
--- a/keyringer
+++ b/keyringer
@@ -128,13 +128,13 @@ CONFIG="$HOME/.$NAME/config"
BASENAME="`basename $0`"
KEYRING="$1"
ACTION="$2"
-ACTIONS="`dirname $0`/share/$NAME"
+ACTIONS="`dirname $(readlink -f $0)`/share/$NAME"
# Export preferences for other scripts
export PREFERENCES="`dirname $CONFIG`/$KEYRING"
# Load functions
-LIB="`dirname $0`/lib/$NAME/functions"
+LIB="`dirname $(readlink -f $0)`/lib/$NAME/functions"
source $LIB
# Setup main configuration and load preferences