Skip to content

Commit 62d9648

Browse files
committed
rename modules.txt so the updater doesn't do stupid shit
1 parent bde83d7 commit 62d9648

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

bin/update.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ setlocal enableextensions enabledelayedexpansion
5151
echo setlocal enableextensions>> "%REDECLIPSE_TEMP%\install.bat"
5252
if "%REDECLIPSE_BRANCH%" == "devel" goto redeclipse_update_bins_run
5353
:redeclipse_update_module
54-
%REDECLIPSE_CURL% --silent --output "%REDECLIPSE_TEMP%\modules.txt" "%REDECLIPSE_SOURCE%/%REDECLIPSE_UPDATE%/modules.txt"
55-
if NOT EXIST "%REDECLIPSE_TEMP%\modules.txt" (
54+
%REDECLIPSE_CURL% --silent --output "%REDECLIPSE_TEMP%\mods.txt" "%REDECLIPSE_SOURCE%/%REDECLIPSE_UPDATE%/mods.txt"
55+
if NOT EXIST "%REDECLIPSE_TEMP%\mods.txt" (
5656
echo Failed to retrieve modules update information.
5757
goto redeclipse_update_bins_run
5858
)
59-
set /p REDECLIPSE_MODULE_LIST=< "%REDECLIPSE_TEMP%\modules.txt"
59+
set /p REDECLIPSE_MODULE_LIST=< "%REDECLIPSE_TEMP%\mods.txt"
6060
if "%REDECLIPSE_MODULE_LIST%" == "" (
6161
echo Failed to get module list, continuing..
6262
goto redeclipse_update_bins_run

bin/update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ redeclipse_update_branch() {
116116
}
117117

118118
redeclipse_update_module() {
119-
${REDECLIPSE_CURL} --silent --output "${REDECLIPSE_TEMP}/modules.txt" "${REDECLIPSE_SOURCE}/${REDECLIPSE_UPDATE}/modules.txt"
120-
if ! [ -e "${REDECLIPSE_TEMP}/modules.txt" ]; then
119+
${REDECLIPSE_CURL} --silent --output "${REDECLIPSE_TEMP}/mods.txt" "${REDECLIPSE_SOURCE}/${REDECLIPSE_UPDATE}/mods.txt"
120+
if ! [ -e "${REDECLIPSE_TEMP}/mods.txt" ]; then
121121
echo "Failed to retrieve modules update information."
122122
redeclipse_update_bins_run
123123
return $?
124124
fi
125-
REDECLIPSE_MODULE_LIST=`cat "${REDECLIPSE_TEMP}/modules.txt"`
125+
REDECLIPSE_MODULE_LIST=`cat "${REDECLIPSE_TEMP}/mods.txt"`
126126
if [ -z "${REDECLIPSE_MODULE_LIST}" ]; then
127127
echo "Failed to get module list, continuing.."
128128
else

0 commit comments

Comments
 (0)