Skip to content

Commit

Permalink
Usr/hshami/pre bug bash (#21)
Browse files Browse the repository at this point in the history
* dos 2 unix test scripts

* firt bug - version string is in the wrong location

* fix printf

* fix typo per PR feedback
  • Loading branch information
mhshami01 authored May 17, 2021
1 parent d402302 commit 0c97af9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/azure-iot-edge-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0c97af9

Please sign in to comment.