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
This commit is contained in:
Родитель
d402302281
Коммит
0c97af9eb7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче