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