-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_requirements.cmd
30 lines (25 loc) · 1.02 KB
/
check_requirements.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@ECHO OFF
SET "requirements_met=true"
ECHO Checking Requirements...
IF NOT EXIST %SYSTEMROOT%\System32\curl.exe (
ECHO - curl command not found. Please install curl and add it to PATH environment variable. && SET "requirements_met=false"
) ELSE (
ECHO + curl command found.
)
IF NOT EXIST %SYSTEMROOT%\System32\tar.exe (
ECHO - tar command not found. Please install tar and add it to PATH environment variable. && SET "requirements_met=false"
) ELSE (
ECHO + tar command found.
)
REM IF NOT EXIST %SYSTEMROOT%\System32\node.exe (
REM ECHO Node.js not found. Please install Node.js and add it to PATH environment variable. && SET "requirements_met=false"
REM )
REM
REM IF NOT EXIST %SYSTEMROOT%\System32\npm.cmd (
REM ECHO NPM not found. Please install Node.js NPM and add it to PATH environment variable. && SET "requirements_met=false"
REM )
IF "%requirements_met%"=="true" (
ECHO All requirements met. You can now run the script. && PAUSE && EXIT
) ELSE (
ECHO Please install the missing requirements and try again. && PAUSE && EXIT
)