diff --git a/install.sh b/install.sh index 30c1d5a..03b51d2 100755 --- a/install.sh +++ b/install.sh @@ -16,12 +16,12 @@ if test "x$BASH" = "x"; then fi # Find the path of our source directory -a2cSource="$( dirname "${BASH_SOURCE[0]}" )" -pushd $a2cSource >/dev/null -a2cSource="$PWD" +top_src="$( dirname "${BASH_SOURCE[0]}" )" +pushd $top_src >/dev/null +top_src="$PWD" popd >/dev/null -if [[ ! -f "$a2cSource/.a2cloud_source" ]]; then - printf "\na2cloud: cannot find a2cloud source directory in $a2cSource.\n\n" +if [[ ! -f "$top_src/.a2cloud_source" ]]; then + printf "\na2cloud: cannot find a2cloud source directory in $top_src.\n\n" exit 1 fi @@ -45,7 +45,7 @@ process_args() { process_args "$@" # FIXME: Show version, changes, config, allow reconfig, etc… -"$a2cSource/scripts/show_changes" +"$top_src/scripts/show_changes" cat <