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
fetch_file() {
local file=$1
local tg=${2:-"$CITBX_ABS_DIR/$1"}
local version=${bashopts_commands[0]:-"master"}
print_note "Fetching file $CITBX_REMOTE_URL/$file..."
mkdir -p $(dirname $tg)
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