www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 4c5c0cfa537484edb4c719c5766e30be713e21f9
parent 059fc30af17cbcc61959dc8a1e58ecc3b8eb41e2
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Thu,  5 Jul 2018 22:41:02 +0200

Don't create .gif if no screenshots were taken

Diffstat:
Mutils/gui-wrapper.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/utils/gui-wrapper.sh b/utils/gui-wrapper.sh @@ -13,7 +13,9 @@ convert -size "$(echo "$resolution" | cut -d 'x' -f1-2)" tile:pattern:checkerboa xvfb-run -a --server-args="-screen 0 ${resolution}" sh -c 'fluxbox 2>/dev/null & sleep 5; fbsetbg -f "'"$bg"'"; sleep 5; (for i in `seq 100`; do scrot "'"$anim"'/$(printf %03d.png $i)"; sleep 0.2; done) & "$@"' utils/gui-wrapper.sh-subshell "$@" -convert $(ls "$anim"/*.png | sort) ./deploy-screenshots/anim.gif +if -n "$(find "$anim"/ -maxdepth 1 -type f -name '*.png')"; then + convert $(ls "$anim"/*.png | sort) ./deploy-screenshots/anim.gif +fi # Cleanup rm "$bg"