123456789101112131415161718192021 |
- @call echo-helper
- @echo off
- setlocal
- REM Set intermediate env vars because the %VAR:x=y% notation below
- REM (which replaces the string x with the string y in VAR)
- REM doesn't handle undefined environment variables. This way
- REM we're always dealing with defined variables in those tests.
- set CHK_HOME=_%AWS_CLOUDWATCH_HOME%
- if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
- "%AWS_CLOUDWATCH_HOME:"=%\bin\mon-cmd.cmd" mon-enable-alarm-actions %*
- goto DONE
- :HOME_MISSING
- echo AWS_CLOUDWATCH_HOME is not set
- exit /b 1
- :DONE
- endlocal
|