Răsfoiți Sursa

corrected var

Daniel Gibbs 9 ani în urmă
părinte
comite
c2de5e9c81

+ 3 - 3
lgsm/functions/command_mods_remove.sh

@@ -81,7 +81,7 @@ while [ "${modfileline}" -le "${modsfilelistsize}" ]; do
 	((modfileline++))
 done
 tput rc; tput ed;
-echo -ne "removing ${modprettyname} ${modfileline} / ${modsfilelistsize}..."
+echo -ne "sed ${modprettyname} ${modfileline} / ${modsfilelistsize}..."
 if [ ${exitcode} -ne 0 ]; then
 	fn_print_fail_eol_nl
 	core_exit.sh
@@ -106,8 +106,8 @@ fi
 # Remove mods from installed mods list
 echo -en "removing ${modcommand} from ${modslockfile}..."
 sleep 0.5
-fn_script_log "Removing: ${modcommand} from ${modslockfilefullpath}"
-sed -i "/^${modcommand}$/d" "${modslockfilefullpath}"
+fn_script_log "Removing: ${modcommand} from ${modsinstalledlist}"
+sed -i "/^${modcommand}$/d" "${modsinstalledlist}"
 local exitcode=$?
 if [ ${exitcode} -ne 0 ]; then
 	fn_print_fail_eol_nl

+ 1 - 1
lgsm/functions/command_mods_update.sh

@@ -51,7 +51,7 @@ done
 # Reset line value
 installedmodsline="1"
 while [ ${installedmodsline} -le ${installedmodscount} ]; do
-	currentmod="$(sed "${installedmodsline}q;d" "${modslockfilefullpath}")"
+	currentmod="$(sed "${installedmodsline}q;d" "${modsinstalledlist}")"
 	if [ -n "${currentmod}" ]; then
 		fn_mod_get_info
 		# Don not update mod if the policy is set to "NOUPDATE"

+ 1 - 1
lgsm/functions/mods_core.sh

@@ -421,7 +421,7 @@ fn_mods_count_installed(){
 # Exit if no mods were installed
 fn_mods_check_installed(){
 	# Count installed mods
-
+	fn_mods_count_installed
 	# If no mods are found
 	if [ ${installedmodscount} -eq 0 ]; then
 		fn_print_information_nl "No installed mods or addons were found"