|
11 | 11 | ME="$( basename "${BASH_ARGV0}" )" |
12 | 12 |
|
13 | 13 | #shellcheck source-path=. |
14 | | -source "${ALLSKY_HOME}/variables.sh" || exit "${EXIT_ERROR_STOP}" |
| 14 | +source "${ALLSKY_HOME}/variables.sh" || exit "${ALLSKY_EXIT_ERROR_STOP}" |
15 | 15 | #shellcheck source-path=scripts |
16 | | -source "${ALLSKY_SCRIPTS}/functions.sh" || exit "${EXIT_ERROR_STOP}" |
| 16 | +source "${ALLSKY_SCRIPTS}/functions.sh" || exit "${ALLSKY_EXIT_ERROR_STOP}" |
17 | 17 | #shellcheck source-path=scripts |
18 | | -source "${ALLSKY_SCRIPTS}/installUpgradeFunctions.sh" || exit "${EXIT_ERROR_STOP}" |
| 18 | +source "${ALLSKY_SCRIPTS}/installUpgradeFunctions.sh" || exit "${ALLSKY_EXIT_ERROR_STOP}" |
19 | 19 | #shellcheck source-path=scripts |
20 | | -source "${ALLSKY_SCRIPTS}/checkFunctions.sh" || exit "${EXIT_ERROR_STOP}" |
| 20 | +source "${ALLSKY_SCRIPTS}/checkFunctions.sh" || exit "${ALLSKY_EXIT_ERROR_STOP}" |
21 | 21 |
|
22 | 22 | # display_msg() sends log entries to this file. |
23 | 23 | # shellcheck disable=SC2034 |
@@ -233,7 +233,7 @@ function pre_install_checks() |
233 | 233 | DIALOG_TEXT+="$( dE_ "NOT WORKING." )" |
234 | 234 | display_box "--infobox" "${DIALOG_PRE_CHECK}" "${DIALOG_TEXT}" |
235 | 235 |
|
236 | | - if [[ ${VALID_RET} -eq ${EXIT_ERROR_STOP} ]]; then |
| 236 | + if [[ ${VALID_RET} -eq ${ALLSKY_EXIT_ERROR_STOP} ]]; then |
237 | 237 | if [[ -n ${GLOBAL_ERROR_MSG} ]]; then |
238 | 238 | MSG="${GLOBAL_ERROR_MSG}" |
239 | 239 | else |
@@ -771,15 +771,15 @@ function check_if_website_is_valid() |
771 | 771 | GLOBAL_ERROR_MSG="$( _check_web_connectivity --url "${REMOTE_WEBSITE_URL}" --from "install" )" |
772 | 772 | RET=$? |
773 | 773 | if [[ ${RET} -ne 0 ]]; then |
774 | | - if [[ ${RET} -eq "${EXIT_PARTIAL_OK}" ]]; then |
| 774 | + if [[ ${RET} -eq "${ALLSKY_EXIT_PARTIAL_OK}" ]]; then |
775 | 775 | # We only have basic connectivity so the site is probably empty |
776 | 776 | # so the checks for files below will fail. Return now. |
777 | 777 | MSG="Skipping remaining validity checks due to Basic Connectivity." |
778 | 778 | display_msg --logonly info "${MSG}" |
779 | 779 | return 0 |
780 | 780 | else |
781 | 781 | display_msg --logonly info "${GLOBAL_ERROR_MSG}" |
782 | | - return "${EXIT_ERROR_STOP}" |
| 782 | + return "${ALLSKY_EXIT_ERROR_STOP}" |
783 | 783 | fi |
784 | 784 | fi |
785 | 785 |
|
@@ -969,7 +969,7 @@ function usage_and_exit() |
969 | 969 |
|
970 | 970 | MSG="Usage: ${ME} [--help] [--debug] [--skipupload] [-auto] [--text]" |
971 | 971 | echo -e "\n${C}${MSG}${cNC}" |
972 | | - echo "where:" |
| 972 | + echo "Arguments:" |
973 | 973 | echo " --help Displays this message and exits." |
974 | 974 | echo " --debug Adds addtional debugging information to the installation log." |
975 | 975 | echo " --skipupload Skips uploading of the remote Website code." |
|
0 commit comments