use bash to move win files because cygpath
@@ -20,10 +20,14 @@ FOR /F "delims=" %%i IN ('cygpath.exe -u "%SRC_DIR%"') DO set "SRC_DIR=%%i"
FOR /F "delims=" %%i IN ('cygpath.exe -u "%STDLIB_DIR%"') DO set "STDLIB_DIR=%%i"
bash -lxc "./build.sh"
+if errorlevel 1 exit 1
-move %PREFIX%\bin\deweb %PREFIX%\bin\deweb.exe
+bash -lxc "ls -l %PREFIX%/bin"
-move %PREFIX%\bin\chkweb %PREFIX%\bin\chkweb.exe
+bash -lxc "mv %PREFIX%/bin/deweb %PREFIX%/bin/deweb.exe"
+if errorlevel 1 exit 1
+bash -lxc "mv %PREFIX%/bin/chkweb %PREFIX%/bin/chkweb.exe"
if errorlevel 1 exit 1
+
exit 0
