#!/bin/sh # downloads and runs an experiment file set -e [ -z "$1" ] && EXPERIMENT=default || EXPERIMENT=$1 EXPERIMENT_URL=https://raw.githubusercontent.com/ekuiter/torte/main/experiments/$EXPERIMENT.sh echo "NOTE: Will now download the experiment file to '$PWD/$EXPERIMENT.sh'." curl -fsSL "$EXPERIMENT_URL" -o "$EXPERIMENT.sh" && bash "$EXPERIMENT.sh"