From 034fac750cf17a36f26a09a7efe51b881579527c Mon Sep 17 00:00:00 2001 From: John S Long Date: Sun, 24 Apr 2016 21:40:38 -0500 Subject: [PATCH] Allow install script to be invoked anywhere Prior to this change, invoking the install script when the current directory is not at the repository root results in a failure to install. --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 33941a0..c5986fe 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,9 @@ #!/bin/sh +SCRIPTDIR=$(dirname $(readlink -f "$0")) CSDIR="$HOME/.config/geany/colorschemes/" echo "Installing themes into \`$CSDIR'..." mkdir -p "$CSDIR" -for SCHEME in `ls colorschemes/*.conf` +for SCHEME in `ls ${SCRIPTDIR}/colorschemes/*.conf` do BNAME=`basename "$SCHEME"` echo " => $BNAME"