Skip to content

Commit

Permalink
cntools: Update bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jul 1, 2020
1 parent 0cc217f commit 3d4918d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions scripts/cnode-helper-scripts/cntools.library
Expand Up @@ -4,8 +4,10 @@
############################################################
# Variables to keep counter for versions #
############################################################
CNTOOLS_MAJOR_VERSION=0 # Any breaking changes (eg: that requires change of cntools.config, env or a change in priv folder would be considered breaking and will be exempt from auto-update)
CNTOOLS_MINOR_VERSION=2 # Changes that can be applied without breaking existing functionality that can be applied from within CNTools
# Any breaking changes (eg: that requires change of cntools.config, env or a change in priv folder would be considered breaking and will be exempt from auto-update)
CNTOOLS_MAJOR_VERSION=0
# Changes that can be applied without breaking existing functionality that can be applied from within CNTools
CNTOOLS_MINOR_VERSION=3
CNTOOLS_VERSION="$CNTOOLS_MAJOR_VERSION.$CNTOOLS_MINOR_VERSION"

############################################################
Expand Down
6 changes: 4 additions & 2 deletions scripts/cnode-helper-scripts/cntools.sh
Expand Up @@ -2439,8 +2439,10 @@ case $OPERATION in
echo ""

URL="https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts"
GIT_MAJOR_VERSION=$(grep -r ^CNTOOLS_MAJOR_VERSION= "$(curl -s "${URL}/cntools.library")" |sed -e "s#.*=##")
GIT_MINOR_VERSION=$(grep -r ^CNTOOLS_MINOR_VERSION= "$(curl -s "${URL}/cntools.library")" |sed -e "s#.*=##")
wget -q -O /tmp/cntools.library "${URL}/cntools.library"
GIT_MAJOR_VERSION=$(grep -r ^CNTOOLS_MAJOR_VERSION= /tmp/cntools.library |sed -e "s#.*=##")
GIT_MINOR_VERSION=$(grep -r ^CNTOOLS_MINOR_VERSION= /tmp/cntools.library |sed -e "s#.*=##")
rm -f /tmp/cntools/library
if [ "$CNTOOLS_MAJOR_VERSION" != "$GIT_MAJOR_VERSION" ];then
say "${RED}WARNING${NC}: Breaking changes were made to CNTools! We will not overwrite your changes automatically. Please backup $CNODE_HOME/priv/wallet and $CNODE_HOME/priv/pool folders and then run the below:"
say " wget -O cntools.sh ${URL}/cntools.sh"
Expand Down

0 comments on commit 3d4918d

Please sign in to comment.