Bash script for recomskip if log not found

As an argument enter the highest ID you want to check.It checks from 1 and only on found directories.

#!/usr/bin/env bash
for i in $(seq 1 $1); do
	COMSKIPLOGDIR=/Volumes/T7/ChannelsDVR/Logs/comskip/$i
	if [ -d $COMSKIPLOGDIR ]; then
			if [ ! -f $COMSKIPLOGDIR/video.ffsplit ]; then
				echo "video.ffsplit nie istnieje"
				curl -X PUT http://localhost:8089/dvr/files/${i}/recomskip
			fi
	fi

done