* dos 2 unix test scripts

* firt bug - version string is in the wrong location

* fix printf

* fix typo per PR feedback
This commit is contained in:
Haitham Shami 2021-05-17 13:33:37 -07:00 коммит произвёл GitHub
Родитель d402302281
Коммит 0c97af9eb7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -5,10 +5,12 @@
if [[ $EUID -ne 0 ]]; if [[ $EUID -ne 0 ]];
then then
echo "ERROR: $0 requires elevated priveledges.. " echo "ERROR: $0 requires elevated privileges.. "
exit 1 exit 1
fi fi
VERSION_TAG="v0.0.1"
# where am i # where am i
TOPDIR=$(dirname $0) TOPDIR=$(dirname $0)
@ -39,6 +41,7 @@ function download_bash_script() {
printf "Testing local file '%s'\n" "../$TOPDIR/$file_name" > /dev/stdout printf "Testing local file '%s'\n" "../$TOPDIR/$file_name" > /dev/stdout
cp ../$TOPDIR/$file_name . cp ../$TOPDIR/$file_name .
else else
printf "wget '%s' -q -O '%s'\n" $url_text $tmp_file > /dev/stdout
wget $url_text -q -O $tmp_file wget $url_text -q -O $tmp_file
# validate request # validate request
@ -85,8 +88,6 @@ printf "Downloaded helper files to temporary directory ./iot-edge-installer\n" >
source utils.sh source utils.sh
log_init log_init
VERSION_TAG="v0.0.0-rc0"
# add flag:variable_name dictionary entries # add flag:variable_name dictionary entries
add_option_args "VERBOSE_LOGGING" -v --verbose add_option_args "VERBOSE_LOGGING" -v --verbose
add_option_args "SCOPE_ID" -s --scope-id add_option_args "SCOPE_ID" -s --scope-id

Просмотреть файл

@ -3,8 +3,6 @@
# Copyright (c) Microsoft Corporation. # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License. # Licensed under the MIT License.
VERSION_TAG="v0.0.1"
# create flag:variable_name dictionary # create flag:variable_name dictionary
declare -A flag_to_variable_dict declare -A flag_to_variable_dict