Skip to content

Commit

Permalink
eureka!
Browse files Browse the repository at this point in the history
  • Loading branch information
ebekker committed Nov 23, 2018
1 parent 53ab81e commit 3aeffae
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ACMESharp/nuget-build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,16 @@ IF "%BUILDNO%"=="" SET BUILDNO=0
ECHO Building %PRJ_ARG% (build #%BUILDNO%)

REM --- Try to find NuGet on the path
FOR /F "delims=" %%i IN ('where nuget.exe nuget.bat nuget.cmd nuget.ps1 /F') DO set NUGET=%%i
FOR /F "delims=" %%i IN ('where nuget /F') DO set NUGET=%%i

REM --- If not found, look for NuGet at fixed location (in AppVeyor)
ECHO NUGET=%NUGET%
IF NOT EXIST "%NUGET%" SET NUGET=%THIS_DIR%..\..\..\nuget\nuget.exe
IF NOT EXIST "%NUGET%" SET NUGET=nuget.exe
ECHO NUGET=%NUGET%
@REM IF NOT EXIST "%NUGET%" (
@REM ECHO --^> ERROR: Cannot Find Nuget: Please ensure Nuget is installed and available on your path
@REM ECHO.
@REM GOTO :eof
@REM )
IF NOT EXIST "%NUGET%" (
ECHO --^> ERROR: Cannot Find Nuget: Please ensure Nuget is installed and available on your path
ECHO.
GOTO :eof
)

SET NUGET=%NUGET:"=%
ECHO Using NuGet located at %NUGET%
Expand Down

0 comments on commit 3aeffae

Please sign in to comment.