Skip to content

Commit

Permalink
Fix to fall back to Framed Theme when there is no default [build]
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Oct 13, 2023
1 parent 7767936 commit f47d70c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'`
Expand Down

0 comments on commit f47d70c

Please sign in to comment.