Commit 3b75b6d1 authored by Emeric Verschuur's avatar Emeric Verschuur

[FIX] regression: CITBX_TOOL_NAME not defined when tools/gitlab-ci/run.sh is called directly

parent bfc1abc4
# Cangelog
## 3.0.1
* [FIX] regression: CITBX_TOOL_NAME not defined when tools/gitlab-ci/run.sh is called directly
## 3.0.0
* Add support of bash completion
* [FIX] remove warning from a test
......
......@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CITBX_VERSION=3.0.0
CITBX_VERSION=3.0.1
# display a message
print_log() {
......@@ -429,6 +429,8 @@ if [ ${#CITBX_MISSING_PKGS[@]} -eq 0 ]; then
eval "$(citbx_job_list -f 'printf("CITBX_JOB_LIST+=(\"%s\");", $0);')"
fi
CITBX_TOOL_NAME=${CITBX_TOOL_NAME:-$0}
bashopts_setup -n "$(basename $CITBX_TOOL_NAME)" \
-d "Gitlab-CI job runner tool (version $CITBX_VERSION)" \
-s "$CITBX_RC_PATH"
......@@ -439,8 +441,6 @@ if [ "$CITBX_BASHCOMP" == "commands" ]; then
exit 0
fi
CITBX_TOOL_NAME=${CITBX_TOOL_NAME:-$0}
command=$1
shift || true
case "$command" in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment