Просмотр исходного кода

fix(fast-dl): correct sound directory name #1999

* sounds directory was called sounds
Daniel Gibbs 7 лет назад
Родитель
Сommit
58e88bee4b
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      lgsm/functions/command_fastdl.sh

+ 3 - 3
lgsm/functions/command_fastdl.sh

@@ -170,7 +170,7 @@ fn_fastdl_preview(){
 		done
 		done
 	# Source engine
 	# Source engine
 	else
 	else
-		fastdl_directories_array=( "maps" "materials" "models" "particles" "sounds" "resources" )
+		fastdl_directories_array=( "maps" "materials" "models" "particles" "sound" "resources" )
 		for directory in "${fastdl_directories_array[@]}"; do
 		for directory in "${fastdl_directories_array[@]}"; do
 			if [ -d "${systemdir}/${directory}" ]; then
 			if [ -d "${systemdir}/${directory}" ]; then
 				if [ "${directory}" == "maps" ]; then
 				if [ "${directory}" == "maps" ]; then
@@ -181,7 +181,7 @@ fn_fastdl_preview(){
 					local allowed_extentions_array=( "*.vtx" "*.vvd" "*.mdl" "*.phy" "*.jpg" "*.png" )
 					local allowed_extentions_array=( "*.vtx" "*.vvd" "*.mdl" "*.phy" "*.jpg" "*.png" )
 				elif [ "${directory}" == "particles" ]; then
 				elif [ "${directory}" == "particles" ]; then
 					local allowed_extentions_array=( "*.pcf" )
 					local allowed_extentions_array=( "*.pcf" )
-				elif [ "${directory}" == "sounds" ]; then
+				elif [ "${directory}" == "sound" ]; then
 					local allowed_extentions_array=( "*.wav" "*.mp3" "*.ogg" )
 					local allowed_extentions_array=( "*.wav" "*.mp3" "*.ogg" )
 				fi
 				fi
 				for allowed_extention in "${allowed_extentions_array[@]}"; do
 				for allowed_extention in "${allowed_extentions_array[@]}"; do
@@ -320,7 +320,7 @@ fn_fastdl_source(){
 				local allowed_extentions_array=( "*.vtx" "*.vvd" "*.mdl" "*.phy" "*.jpg" "*.png" )
 				local allowed_extentions_array=( "*.vtx" "*.vvd" "*.mdl" "*.phy" "*.jpg" "*.png" )
 			elif [ "${directory}" == "particles" ]; then
 			elif [ "${directory}" == "particles" ]; then
 				local allowed_extentions_array=( "*.pcf" )
 				local allowed_extentions_array=( "*.pcf" )
-			elif [ "${directory}" == "sounds" ]; then
+			elif [ "${directory}" == "sound" ]; then
 				local allowed_extentions_array=( "*.wav" "*.mp3" "*.ogg" )
 				local allowed_extentions_array=( "*.wav" "*.mp3" "*.ogg" )
 			fi
 			fi
 			for allowed_extention in "${allowed_extentions_array[@]}"
 			for allowed_extention in "${allowed_extentions_array[@]}"