Skip to content
Snippets Groups Projects
Commit 921896ba authored by Sam Gleske's avatar Sam Gleske
Browse files

Use bash to find dir rather than subshell

parent c40c6a1a
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
set -e
#Include all user options and dependencies
git_mirrors_dir="$(dirname "${0}")"
git_mirrors_dir="${0%/*}"
. "${git_mirrors_dir}/config.sh"
. "${git_mirrors_dir}/lib/VERSION"
. "${git_mirrors_dir}/lib/functions.sh"
......
......@@ -7,11 +7,12 @@
set -e
#Include all user options and dependencies
git_mirrors_dir="$(dirname "${0}")"
git_mirrors_dir="${0%/*}"
. "${git_mirrors_dir}/config.sh"
. "${git_mirrors_dir}/lib/VERSION"
. "${git_mirrors_dir}/lib/functions.sh"
cd "${git_mirrors_dir}"
. "config.sh"
. "lib/VERSION"
. "lib/functions.sh"
PROGNAME="${0##*/}"
PROGVERSION="${VERSION}"
......
......@@ -4,7 +4,7 @@
#Created Tue Sep 10 23:01:08 EDT 2013
#Include all user options and dependencies
git_mirrors_dir="$(dirname "${0}")"
git_mirrors_dir="${0%/*}"
. "${git_mirrors_dir}/config.sh"
. "${git_mirrors_dir}/lib/VERSION"
. "${git_mirrors_dir}/lib/functions.sh"
......
......@@ -9,7 +9,7 @@
set -e
#Include all user options and dependencies
git_mirrors_dir="$(dirname "${0}")"
git_mirrors_dir="${0%/*}"
. "${git_mirrors_dir}/config.sh"
. "${git_mirrors_dir}/lib/VERSION"
. "${git_mirrors_dir}/lib/functions.sh"
......
......@@ -9,11 +9,12 @@
set -e
#Include all user options and dependencies
git_mirrors_dir="$(dirname "${0}")"
git_mirrors_dir="${0%/*}"
. "${git_mirrors_dir}/config.sh"
. "${git_mirrors_dir}/lib/VERSION"
. "${git_mirrors_dir}/lib/functions.sh"
cd "${git_mirrors_dir}"
. "config.sh"
. "lib/VERSION"
. "lib/functions.sh"
PROGNAME="${0##*/}"
PROGVERSION="${VERSION}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment