From c2a35d7076fd75ad830695d8630e080e8eb2b82f Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Tue, 2 Jun 2020 13:58:44 +0200 Subject: [PATCH] Small fix. --- doc/bin/gen_lcd_screen.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/bin/gen_lcd_screen.sh b/doc/bin/gen_lcd_screen.sh index ef05d06..948eaf8 100755 --- a/doc/bin/gen_lcd_screen.sh +++ b/doc/bin/gen_lcd_screen.sh @@ -65,4 +65,9 @@ do done done -mv /tmp/LCD_$$.png /tmp/LCD.png +if [ "${3}" ] +then + mv /tmp/LCD_$$.png "${3}" +else + echo "Created /tmp/LCD_$$.png" +fi