From 33f86d03e2df73301363525b1ce8ffd15599bd71 Mon Sep 17 00:00:00 2001 From: Daniel Porzucek Date: Wed, 20 Mar 2024 17:25:00 +0100 Subject: [PATCH] check cutoff value --- data_download.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data_download.sh b/data_download.sh index a5efbfe..050136e 100644 --- a/data_download.sh +++ b/data_download.sh @@ -20,7 +20,8 @@ if [[ "$1" == "--cutoff" ]]; then echo "Error: cutoff value must be a positive number" exit 1 fi - cutoff="$1" + cutoff=$(("$1" + 1)) + echo "CUTOFF $cutoff" fi head -n "$cutoff" train.csv > cutoff_train.csv