mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 19:14:39 +02:00
cron/webcam.sh: fixing command dirname
This commit is contained in:
parent
7c46129c2e
commit
e3363f1f4c
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ size="1280x720"
|
||||||
|
|
||||||
mkdir -p $path
|
mkdir -p $path
|
||||||
streamer -q -f jpeg -s $size -o $path$now.jpeg -r 1
|
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
|
# echo $grey
|
||||||
if [ "$grey" = "True" ] ; then
|
if [ "$grey" = "True" ] ; then
|
||||||
# echo "Has to move"
|
# echo "Has to move"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue