From f47d70c94cdb2c057f6450fca4a76b524ae2d43d Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Fri, 13 Oct 2023 12:20:27 +0300 Subject: [PATCH] Fix to fall back to Framed Theme when there is no default [build] --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.sh b/setup.sh index 71179b44..073b8635 100755 --- a/setup.sh +++ b/setup.sh @@ -697,6 +697,10 @@ fi # Set a special theme if none was set before if [ "$theme" = "" ]; then theme=`cat "$wadir/defaulttheme" 2>/dev/null` + # If no default theme found fall back to Framed Theme + if [ ! -d "$wadir/$theme" ]; then + theme="gray-theme" + fi fi oldthemeline=`grep "^theme=" $config_dir/config` oldtheme=`echo $oldthemeline | sed -e 's/theme=//g'`