فهرست منبع

added rm to remove any existing serverlist

Daniel Gibbs 9 سال پیش
والد
کامیت
874b1bf4bf
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      linuxgsm.sh

+ 4 - 2
linuxgsm.sh

@@ -265,9 +265,11 @@ if [ "${shortname}" == "core" ]; then
 	serverlist="${datadir}/serverlist.csv"
 	serverlist="${datadir}/serverlist.csv"
 
 
 	# Download the serverlist. This is the complete list of all supported servers.
 	# Download the serverlist. This is the complete list of all supported servers.
-	# Download to tmp dir
-	fn_bootstrap_fetch_file_github "lgsm/data" "serverlist.csv" "${datadir}" "serverlist.csv" "nochmodx" "norun" "noforcedl" "nomd5"
 
 
+	if [ -f "${serverlist}" ]; then
+		rm "${serverlist}"
+	fi
+	fn_bootstrap_fetch_file_github "lgsm/data" "serverlist.csv" "${datadir}" "serverlist.csv" "nochmodx" "norun" "noforcedl" "nomd5"
 	if [ ! -f "${serverlist}" ]; then
 	if [ ! -f "${serverlist}" ]; then
 		echo "[ FAIL ] serverlist.csv could not be loaded."
 		echo "[ FAIL ] serverlist.csv could not be loaded."
 		exit 1
 		exit 1