PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
#! | 33 lines | 27 code | 6 blank | 0 comment | 0 complexity | 9445c4b2a3ccef10d13547e043251005 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# make sure all of these environment variables have the right values
17
18result=0
19
20if [ "${KS_PREINSTALL_OUT:=undefined}" != "bork" ]; then
21  echo "KS_PREINSTALL_OUT has unexpected value: '${KS_PREINSTALL_OUT}'"
22  result=1
23fi
24
25if [ "${KS_INSTALL_OUT:=undefined}" != "greeble" ]; then
26  echo "KS_INSTALL_OUT has unexpected value: '${KS_INSTALL_OUT}'"
27  result=1
28fi
29
30cd "${1}"
31. .script_common
32
33exit $result