From e3363f1f4c1efb002ce2127bfa3df56dbfaf5d6f Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 16 Apr 2017 18:20:41 +0200 Subject: [PATCH] cron/webcam.sh: fixing command dirname --- cron/webcam.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/webcam.sh b/cron/webcam.sh index a3e9a66..b913de0 100755 --- a/cron/webcam.sh +++ b/cron/webcam.sh @@ -6,7 +6,7 @@ size="1280x720" mkdir -p $path streamer -q -f jpeg -s $size -o $path$now.jpeg -r 1 -grey="$(python3 $(basedir $(readlink -f $0))/blackcheck.py -i $path$now.jpeg -d 10)" +grey="$(python3 $(dirname $(readlink -f $0))/blackcheck.py -i $path$now.jpeg -d 10)" # echo $grey if [ "$grey" = "True" ] ; then # echo "Has to move"