We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b0432 commit d808cb2Copy full SHA for d808cb2
bin/v-list-sys-themes
@@ -82,9 +82,12 @@ csv_list() {
82
83
# Parsing templates
84
themes=$(ls -v $HESTIA_THEMES/)
85
-themes_custom=$(ls -v $HESTIA_THEMES_CUSTOM/)
86
-themes=$(echo "$themes" |grep '\.css' |sed 's/\.css$//')
87
-themes_custom=$(echo "$themes_custom" |grep '\.css' |sed 's/\.css$//')
+themes=$(echo "$themes" | grep '\.css' | sed 's/\.css$//')
+
+if [ ! -z "$HESTIA_THEMES_CUSTOM" ]; then
88
+ themes_custom=$(ls -v $HESTIA_THEMES_CUSTOM/)
89
+ themes_custom=$(echo "$themes_custom" | grep '\.css' | sed 's/\.css$//')
90
+fi
91
92
# Listing data
93
case $format in
0 commit comments