summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlog.sh7
1 files 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