From b8929042206f77049ca880932ffc3033994b1689 Mon Sep 17 00:00:00 2001 From: Jared Ballou Date: Wed, 20 Jan 2016 23:49:01 -0500 Subject: [PATCH] Updated installer to use proper source path --- _MasterScript/lgsm-core | 1 - functions/install_lgsm.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/_MasterScript/lgsm-core b/_MasterScript/lgsm-core index 0b239a26e..4b8059683 100755 --- a/_MasterScript/lgsm-core +++ b/_MasterScript/lgsm-core @@ -47,7 +47,6 @@ for dir in $(grep '^[a-zA-Z0-9]*dir=' $0 | cut -d'=' -f1); do mkdir -p "${!dir}" fi done -exit # Git last commit file (for tracking updates) lastcommit_file="${cachedir}/lastcommit" diff --git a/functions/install_lgsm.sh b/functions/install_lgsm.sh index c8af240b8..0eb1ee111 100644 --- a/functions/install_lgsm.sh +++ b/functions/install_lgsm.sh @@ -34,7 +34,7 @@ if [ -n "${result}" ]; then mkdir -p $(dirname "${scriptpath}") fi # Copy script and set executable - cp "${BASH_SOURCE[0]}" "${scriptpath}" + cp "${0}" "${scriptpath}" chmod 0755 "${scriptpath}" if [ $? ]; then fn_colortext green "Done"