From 90f689c2d3a34d894756fa3818afa7d10380f07a Mon Sep 17 00:00:00 2001 From: Paul Stewart Date: Mon, 19 Jul 2010 10:37:06 -0700 Subject: [PATCH] Pack and unpack scripts switched to bash The "[[ ... ]]" syntax is bash-specific. Reflect this by changing shbang to "#!/bin/bash". Many of our dev systems symlink "/bin/sh" to "/bin/bash" which has masked this problem for a long time, but "real" sh fails on "[[". BUG=none TEST=rerun Review URL: http://codereview.chromium.org/2825050 --- emit_gpt_scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emit_gpt_scripts.sh b/emit_gpt_scripts.sh index 12e3629f1b..692e836ef8 100755 --- a/emit_gpt_scripts.sh +++ b/emit_gpt_scripts.sh @@ -28,7 +28,7 @@ locate_gpt TMP=$(mktemp) $GPT show "$IMAGE" > $TMP -HEADER='#!/bin/sh -eu +HEADER='#!/bin/bash -eu # File generated by emit_gpt_scripts.sh. Do not edit. TARGET=${1:-} if [[ -z "$TARGET" ]]; then