Skip to content

Commit

Permalink
Merge branch 'develop' into release/1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lkrcal committed Nov 7, 2019
2 parents 610dae5 + ddc58e6 commit 1dd1190
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 35 deletions.
1 change: 1 addition & 0 deletions init/iofog/.gitignore
@@ -0,0 +1 @@
local-stack.yaml
35 changes: 0 additions & 35 deletions init/iofog/local-stack.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions utils.sh
Expand Up @@ -101,6 +101,22 @@ checkOSPlatform() {
export ID D_NUM
}

versionCompare() {
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1";
}

checkIofogctl() {
IOFOGCTL_MINIMAL_VERSION="1.3.0"
if [[ -z "$(command -v iofogctl)" ]] ; then
echoError "iofogctl not found!"
exit 1;
fi
IOFOGCTL_VERSION=$(iofogctl version | sed -n 's/version: \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p')
if versionCompare "${IOFOGCTL_MINIMAL_VERSION}" "${IOFOGCTL_VERSION}"; then
echoError "iofogctl version not sufficient!"
exit 1;
fi
}
#
# The following are a bunch or pretty printing echo methods
#
Expand Down Expand Up @@ -139,3 +155,4 @@ echoError() {

# Are we in debug mode?
checkForDebug
checkIofogctl

0 comments on commit 1dd1190

Please sign in to comment.