소스 검색

Further ui changes

Daniel Gibbs 9 년 전
부모
커밋
57d12ceca2
1개의 변경된 파일5개의 추가작업 그리고 7개의 파일을 삭제
  1. 5 7
      lgsm/functions/command_mods_update.sh

+ 5 - 7
lgsm/functions/command_mods_update.sh

@@ -12,8 +12,6 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 check.sh
 check.sh
 mods_core.sh
 mods_core.sh
 
 
-fn_print_header
-
 # Prevents specific files being overwritten upon update (set by ${modkeepfiles})
 # Prevents specific files being overwritten upon update (set by ${modkeepfiles})
 # For that matter, remove cfg files after extraction before copying them to destination
 # For that matter, remove cfg files after extraction before copying them to destination
 fn_remove_cfg_files(){
 fn_remove_cfg_files(){
@@ -45,8 +43,7 @@ fn_remove_cfg_files(){
 fn_print_dots "Update addons/mods"
 fn_print_dots "Update addons/mods"
 sleep 0.5
 sleep 0.5
 fn_mods_check_installed
 fn_mods_check_installed
-fn_print_info "Update addons/mods: ${installedmodscount} addons/mods will be updated"
-sleep 0.5
+fn_print_info_nl "Update addons/mods: ${installedmodscount} addons/mods will be updated"
 fn_script_log_info "${installedmodscount} mods or addons will be updated"
 fn_script_log_info "${installedmodscount} mods or addons will be updated"
 fn_mods_installed_list
 fn_mods_installed_list
 # Go through all available commands, get details and display them to the user
 # Go through all available commands, get details and display them to the user
@@ -63,14 +60,15 @@ for ((ulindex=0; ulindex < ${#installedmodslist[@]}; ulindex++)); do
 		core_exit.sh
 		core_exit.sh
 	# If the mod won't get updated
 	# If the mod won't get updated
 	elif [ "${modkeepfiles}" == "NOUPDATE" ]; then
 	elif [ "${modkeepfiles}" == "NOUPDATE" ]; then
-		echo -e " * \e[31m${modprettyname}${default} (won't be updated)"
+		echo -e "	* \e[31m${modprettyname}${default} (won't be updated)"
 	# If the mode is just overwritten
 	# If the mode is just overwritten
 	elif [ "${modkeepfiles}" == "OVERWRITE" ]; then
 	elif [ "${modkeepfiles}" == "OVERWRITE" ]; then
-		echo -e " * \e[1m${modprettyname}${default} (overwrite)"
+		echo -e "	* \e[1m${modprettyname}${default} (overwrite)"
 	else
 	else
-		echo -e " * ${yellow}${modprettyname}${default} (common custom files remain untouched)"
+		echo -e "	* ${yellow}${modprettyname}${default} (common custom files remain untouched)"
 	fi
 	fi
 done
 done
+sleep 1
 
 
 ## Update
 ## Update
 # List all installed mods and apply update
 # List all installed mods and apply update