From 0c97af9eb7fc769b3d575521767a3ace470a7941 Mon Sep 17 00:00:00 2001 From: Haitham Shami Date: Mon, 17 May 2021 13:33:37 -0700 Subject: [PATCH] Usr/hshami/pre bug bash (#21) * dos 2 unix test scripts * firt bug - version string is in the wrong location * fix printf * fix typo per PR feedback --- src/azure-iot-edge-installer.sh | 7 ++++--- src/utils.sh | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) 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