From acd210b47ce3e4740688784f987381627824586e Mon Sep 17 00:00:00 2001 From: Wendell Borges Date: Fri, 11 May 2018 18:29:27 -0300 Subject: [PATCH] checking for the existence of the file splash.png --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 82193cb..ce4483b 100755 --- a/install.sh +++ b/install.sh @@ -57,7 +57,10 @@ show_menu () { fi - sudo mv ./config/splash.png /usr/share/plymouth/themes/pix/splash.png + # checking for file splash.png + if [ -e /usr/share/plymouth/themes/pix/splash.png ]; then + sudo mv ./config/splash.png /usr/share/plymouth/themes/pix/splash.png + fi sed "s@#DIR#@${PWD}@g" config/craftbeerpiboot > /etc/init.d/craftbeerpiboot chmod 755 /etc/init.d/craftbeerpiboot;