Skip to content

Commit

Permalink
logic error in update check (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed May 13, 2021
1 parent aafeb31 commit 0f3b1e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/cncli.sh
Expand Up @@ -141,7 +141,7 @@ cncliInit() {
if [[ "${UPDATE_CHECK}" == "Y" ]]; then
echo "Checking for script updates..."
# Check availability of checkUpdate function
if [[ $(command -v checkUpdate) ]]; then
if [[ ! $(command -v checkUpdate) ]]; then
echo -e "\nCould not find checkUpdate function in env, make sure you're using official guild docos for installation!"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/cntools.sh
Expand Up @@ -73,7 +73,7 @@ if [[ ${CNTOOLS_MODE} = "CONNECTED" ]]; then
if [[ "${UPDATE_CHECK}" == "Y" ]]; then
echo "Checking for script updates..."
# Check availability of checkUpdate function
if [[ $(command -v checkUpdate) ]]; then
if [[ ! $(command -v checkUpdate) ]]; then
echo -e "\nCould not find checkUpdate function in env, make sure you're using official guild docos for installation!"
myExit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/gLiveView.sh
Expand Up @@ -119,7 +119,7 @@ fi
if [[ "${UPDATE_CHECK}" == "Y" ]]; then
echo "Checking for script updates..."
# Check availability of checkUpdate function
if [[ $(command -v checkUpdate) ]]; then
if [[ ! $(command -v checkUpdate) ]]; then
echo -e "\nCould not find checkUpdate function in env, make sure you're using official guild docos for installation!"
myExit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/cnode-helper-scripts/topologyUpdater.sh
Expand Up @@ -67,7 +67,7 @@ fi
if [[ "${UPDATE_CHECK}" == "Y" ]] && [[ "${BATCH_AUTO_UPDATE}" == "N" ]]; then
echo "Checking for script updates..."
# Check availability of checkUpdate function
if [[ $(command -v checkUpdate) ]]; then
if [[ ! $(command -v checkUpdate) ]]; then
echo -e "\nCould not find checkUpdate function in env, make sure you're using official guild docos for installation!"
exit 1
fi
Expand Down

0 comments on commit 0f3b1e3

Please sign in to comment.