5
REM Copyright 2006-2009 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the
6
REM Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the
7
REM License is located at http://aws.amazon.com/asl or in the "license" file accompanying this file. This file is distributed on an "AS
8
REM IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
9
REM language governing permissions and limitations under the License.
11
REM Set intermediate env vars because the %VAR:x=y% notation below
12
REM (which replaces the string x with the string y in VAR)
13
REM doesn't handle undefined environment variables. This way
14
REM we're always dealing with defined variables in those tests.
15
set CHK_HOME=_%EC2_HOME%
17
if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
19
"%EC2_HOME:"=%\bin\ec2-cmd" ModifyImageAttribute %*
22
echo EC2_HOME is not set