Skip to content

Commit d808cb2

Browse files
author
Kristan Kenney
committed
Minor fixes to v-list-sys-themes
1 parent 82b0432 commit d808cb2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/v-list-sys-themes

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ csv_list() {
8282

8383
# Parsing templates
8484
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$//')
85+
themes=$(echo "$themes" | grep '\.css' | sed 's/\.css$//')
86+
87+
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
8891

8992
# Listing data
9093
case $format in

0 commit comments

Comments
 (0)