Skip to content

Commit

Permalink
added support for rclone on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Feb 29, 2024
1 parent 3e43009 commit 0707c5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions cm-mlops/script/download-file/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ rem If MD5 is wrong, download again!
rem Next line allows ERRORLEVEL inside if statements!
setlocal enabledelayedexpansion

if NOT "%CM_DOWNLOAD_CONFIG_CMD%" == "" (
echo.
echo %CM_DOWNLOAD_CONFIG_CMD%
echo.
%CM_DOWNLOAD_CONFIG_CMD%
IF !ERRORLEVEL! NEQ 0 EXIT !ERRORLEVEL!
)

set require_download=1
if exist "%CM_DOWNLOAD_DOWNLOADED_PATH%" (
set require_download=0
Expand Down
1 change: 1 addition & 0 deletions cm-mlops/script/download-file/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if [[ -n ${CM_DOWNLOAD_CONFIG_CMD} ]]; then
echo ""
echo "${CM_DOWNLOAD_CONFIG_CMD}"
eval "${CM_DOWNLOAD_CONFIG_CMD}"
test $? -eq 0 || exit $?
fi

if [ -e ${CM_DOWNLOAD_DOWNLOADED_PATH} ]; then
Expand Down
2 changes: 1 addition & 1 deletion cm-mlops/script/get-rclone/install.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
del /Q /S rclone-v1.65.2-windows-amd64.zip > NUL 2>&1

wget https://downloads.rclone.org/v1.65.2/rclone-v1.65.2-windows-amd64.zip
wget --no-check-certificate https://downloads.rclone.org/v1.65.2/rclone-v1.65.2-windows-amd64.zip
IF %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

unzip -o rclone-v1.65.2-windows-amd64.zip
Expand Down

0 comments on commit 0707c5f

Please sign in to comment.