/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. # make sure all of these environment variables have the right values
  16. result=0
  17. if [ "${KS_PREINSTALL_OUT:=undefined}" != "bork" ]; then
  18. echo "KS_PREINSTALL_OUT has unexpected value: '${KS_PREINSTALL_OUT}'"
  19. result=1
  20. fi
  21. if [ "${KS_INSTALL_OUT:=undefined}" != "greeble" ]; then
  22. echo "KS_INSTALL_OUT has unexpected value: '${KS_INSTALL_OUT}'"
  23. result=1
  24. fi
  25. cd "${1}"
  26. . .script_common
  27. exit $result