From c5d876faff7deef0506a9c7b2de3a169ca6c8e45 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Sat, 11 Nov 2023 23:00:46 -0500 Subject: Set default file to the working dir log.tsv --- log.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/log.sh b/log.sh index d812c84..57ae19e 100755 --- a/log.sh +++ b/log.sh @@ -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 -- cgit v1.2.3-54-g00ecf