allow redirect for cammie screenshot

This commit is contained in:
Felix Van der Jeugt 2021-09-06 13:54:46 +02:00
parent b70fb02ec1
commit b64f921a9f
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -6,7 +6,7 @@ if [ -n "$1" ]; then
while [ -n "$1" ]; do
case $1 in
scrot) foto="$(mktemp XXXXXX.jpg)"
curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi \
curl -L http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi \
| ffmpeg -y -ss 0 -i - -vframes 1 -q:v 2 "$foto"
feh "$foto"
rm "$foto"