Commit eea98a1a authored by Emeric Verschuur's avatar Emeric Verschuur

Update fetch_file function for update command

parent ceac531b
...@@ -627,7 +627,8 @@ if [ "$command" == "update" ]; then ...@@ -627,7 +627,8 @@ if [ "$command" == "update" ]; then
fetch_file() { fetch_file() {
local file=$1 local file=$1
local tg=${2:-"$CITBX_ABS_DIR/$1"} local tg=${2:-"$CITBX_ABS_DIR/$1"}
CITBX_REMOTE_URL=https://gitlab.com/ercom/citbx4gitlab/raw/master/tools/gitlab-ci local version=${bashopts_commands[0]:-"master"}
CITBX_REMOTE_URL=${CITBX_REMOTE_URL:-"https://gitlab.com/ercom/citbx4gitlab/raw/$version/tools/gitlab-ci"}
print_note "Fetching file $CITBX_REMOTE_URL/$file..." print_note "Fetching file $CITBX_REMOTE_URL/$file..."
mkdir -p $(dirname $tg) mkdir -p $(dirname $tg)
curl -fSsLo $tg $CITBX_REMOTE_URL/$file \ curl -fSsLo $tg $CITBX_REMOTE_URL/$file \
......
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