test echo

This commit is contained in:
s495716 2024-03-20 17:37:02 +01:00
parent 401903bd0e
commit eb1ce081d2
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ figlet "CUTOFF DATA FROM TRAIN SET"
shift "$(($OPTIND - 1))"
if [[ "$1" == "--cutoff" ]]; then
shift
echo "$1"
if [[ ! "$1" =~ ^[1-9][0-9]*$ ]]; then
echo "Error: cutoff value must be a positive number"
exit 1