PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/Core/TestResources/Test-ENVVAR-source/.engine_install

http://macfuse.googlecode.com/
#! | 36 lines | 29 code | 7 blank | 0 comment | 0 complexity | a514ef681321e44cccd19fe52b1a08a2 MD5 | raw file
 1#!/bin/bash
 2# Copyright 2008 Google Inc.
 3#
 4# Licensed under the Apache License, Version 2.0 (the "License");
 5# you may not use this file except in compliance with the License.
 6# You may obtain a copy of the License at
 7#
 8#     http://www.apache.org/licenses/LICENSE-2.0
 9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# the contents of the subsequent phase's KS_INSTALL_OUT
17echo -n "greeble"
18
19# make sure all of these environment variables have the right values
20
21result=0
22
23if [ "${KS_PREINSTALL_OUT:=undefined}" != "bork" ]; then
24  echo "KS_PREINSTALL_OUT has unexpected value: '${KS_PREINSTALL_OUT}'"
25  result=1
26fi
27
28if [ "${KS_INSTALL_OUT:=undefined}" != "undefined" ]; then
29  echo "KS_INSTALL_OUT has unexpected value: '${KS_INSTALL_OUT}'"
30  result=1
31fi
32
33cd "${1}"
34. .script_common
35
36exit $result