diff options
-rwxr-xr-x | log.sh | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -6,12 +6,11 @@ source $WORKING_DIR/.venv/bin/activate python3 -m pip install -I --disable-pip-version-check -r $WORKING_DIR/requirements.txt if [[ $# -ne 1 ]]; then - echo "You must supply a target file" - exit 1 + OUTPUT=$WORKING_DIR/log.tsv +else + OUTPUT=$1 fi -OUTPUT=$1 - if [[ ! -f $OUTPUT ]]; then speedtest-cli --csv-header | sed -E 's/,/\t/g' > $OUTPUT fi |