diff --git a/src/azure-iot-edge-installer.sh b/src/azure-iot-edge-installer.sh index 68264fa..c7672a3 100644 --- a/src/azure-iot-edge-installer.sh +++ b/src/azure-iot-edge-installer.sh @@ -5,10 +5,12 @@ if [[ $EUID -ne 0 ]]; then - echo "ERROR: $0 requires elevated priveledges.. " + echo "ERROR: $0 requires elevated privileges.. " exit 1 fi +VERSION_TAG="v0.0.1" + # where am i TOPDIR=$(dirname $0) @@ -39,6 +41,7 @@ function download_bash_script() { printf "Testing local file '%s'\n" "../$TOPDIR/$file_name" > /dev/stdout cp ../$TOPDIR/$file_name . else + printf "wget '%s' -q -O '%s'\n" $url_text $tmp_file > /dev/stdout wget $url_text -q -O $tmp_file # validate request @@ -85,8 +88,6 @@ printf "Downloaded helper files to temporary directory ./iot-edge-installer\n" > source utils.sh log_init -VERSION_TAG="v0.0.0-rc0" - # add flag:variable_name dictionary entries add_option_args "VERBOSE_LOGGING" -v --verbose add_option_args "SCOPE_ID" -s --scope-id diff --git a/src/utils.sh b/src/utils.sh index dd95aa9..aaeaf5e 100644 --- a/src/utils.sh +++ b/src/utils.sh @@ -3,8 +3,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. -VERSION_TAG="v0.0.1" - # create flag:variable_name dictionary declare -A flag_to_variable_dict