Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Jul 27, 2023
1 parent 36d6e98 commit d9aa5ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/cli/playground
Original file line number Diff line number Diff line change
Expand Up @@ -7685,7 +7685,7 @@ function force_enable () {
env_variable=$2

logwarn "💪 Forcing $flag ($env_variable env variable)"
line_final_source=$(grep -n 'source ${DIR}/../../scripts/utils.sh' $repro_test_file | cut -d ":" -f 1 | tail -n1)
line_final_source=$(grep -n 'source ${DIR}/../../scripts/utils.sh$' $repro_test_file | cut -d ":" -f 1 | tail -n1)
tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
trap 'rm -rf $tmp_dir' EXIT
echo "# remove or comment those lines if you don't need it anymore" > $tmp_dir/tmp_force_enable
Expand Down Expand Up @@ -8745,6 +8745,7 @@ playground_bootstrap_reproduction_model_command() {

tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
trap 'rm -rf $tmp_dir' EXIT
set +e
echo "#!/bin/bash" > $tmp_dir/intro
echo "###############################################" >> $tmp_dir/intro
echo "# 🗓️ date: `date`" >> $tmp_dir/intro
Expand Down
1 change: 1 addition & 0 deletions scripts/cli/src/bootstrap_reproduction_model_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ fi

tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
trap 'rm -rf $tmp_dir' EXIT
set +e
echo "#!/bin/bash" > $tmp_dir/intro
echo "###############################################" >> $tmp_dir/intro
echo "# 🗓️ date: `date`" >> $tmp_dir/intro
Expand Down
2 changes: 1 addition & 1 deletion scripts/cli/src/lib/utils_function.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3413,7 +3413,7 @@ function force_enable () {
env_variable=$2

logwarn "💪 Forcing $flag ($env_variable env variable)"
line_final_source=$(grep -n 'source ${DIR}/../../scripts/utils.sh' $repro_test_file | cut -d ":" -f 1 | tail -n1)
line_final_source=$(grep -n 'source ${DIR}/../../scripts/utils.sh$' $repro_test_file | cut -d ":" -f 1 | tail -n1)
tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
trap 'rm -rf $tmp_dir' EXIT
echo "# remove or comment those lines if you don't need it anymore" > $tmp_dir/tmp_force_enable
Expand Down

0 comments on commit d9aa5ab

Please sign in to comment.