Skip to content

Commit

Permalink
Move mithril library call to be lower in the script
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jun 7, 2024
1 parent 6f16575 commit 6e27578
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions scripts/cnode-helper-scripts/cnode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# shellcheck disable=SC2086
#shellcheck source=/dev/null

. "$(dirname $0)"/env offline

######################################
# User Variables - Change as desired #
# Common variables set in env file #
Expand Down
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/mithril-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# shellcheck disable=SC2086
#shellcheck source=/dev/null

. "$(dirname $0)"/mithril.library

######################################
# User Variables - Change as desired #
# Common variables set in env file #
Expand Down Expand Up @@ -175,6 +173,8 @@ list_stake_distributions() {
# Execution/Main #
#####################

. "$(dirname $0)"/mithril.library

update_check "$@"

set_defaults
Expand Down
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/mithril-relay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# shellcheck disable=SC2086
#shellcheck source=/dev/null

. "$(dirname $0)"/mithril.library

######################################
# User Variables - Change as desired #
# Common variables set in env file #
Expand Down Expand Up @@ -254,6 +252,8 @@ if [[ ${OPTIND} -eq 1 ]]; then
exit 1
fi

. "$(dirname $0)"/mithril.library

[[ "${STOP_RELAYS}" == "Y" ]] && stop_relays

update_check "$@"
Expand Down
6 changes: 3 additions & 3 deletions scripts/cnode-helper-scripts/mithril-signer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# shellcheck disable=SC2086
#shellcheck source=/dev/null

. "$(dirname $0)"/mithril.library

######################################
# User Variables - Change as desired #
# Common variables set in env file #
Expand Down Expand Up @@ -188,6 +186,8 @@ while getopts :dDekrsuh opt; do
esac
done

. "$(dirname $0)"/mithril.library

[[ "${STOP_SIGNER}" == "Y" ]] && stop_signer

# Check for updates
Expand Down Expand Up @@ -230,4 +230,4 @@ else
exit 1
fi
fi
fi
fi

0 comments on commit 6e27578

Please sign in to comment.