Преглед изворни кода

Minor fixes to v-list-sys-themes

Kristan Kenney пре 6 година
родитељ
комит
d808cb243f
1 измењених фајлова са 6 додато и 3 уклоњено
  1. 6 3
      bin/v-list-sys-themes

+ 6 - 3
bin/v-list-sys-themes

@@ -82,9 +82,12 @@ csv_list() {
 
 # Parsing templates
 themes=$(ls -v $HESTIA_THEMES/)
-themes_custom=$(ls -v $HESTIA_THEMES_CUSTOM/)
-themes=$(echo "$themes" |grep '\.css' |sed 's/\.css$//')
-themes_custom=$(echo "$themes_custom" |grep '\.css' |sed 's/\.css$//')
+themes=$(echo "$themes" | grep '\.css' | sed 's/\.css$//')
+
+if [ ! -z "$HESTIA_THEMES_CUSTOM" ]; then
+    themes_custom=$(ls -v $HESTIA_THEMES_CUSTOM/)
+    themes_custom=$(echo "$themes_custom" | grep '\.css' | sed 's/\.css$//')
+fi
 
 # Listing data
 case $format in