From 32ddb4282f6d25110e25e6f5f943a1215d64fb1b Mon Sep 17 00:00:00 2001 From: robotboy Date: Wed, 21 Apr 2010 14:46:00 -0700 Subject: [PATCH] Only search for the gpt tool if we need it. Review URL: http://codereview.chromium.org/1747005 --- emit_gpt_scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emit_gpt_scripts.sh b/emit_gpt_scripts.sh index 825f511ed2..b16e4b3a42 100755 --- a/emit_gpt_scripts.sh +++ b/emit_gpt_scripts.sh @@ -23,6 +23,8 @@ fi PACK="${DIR}/pack_partitions.sh" UNPACK="${DIR}/unpack_partitions.sh" +locate_gpt + TMP=$(mktemp) sudo $GPT -r show -l "$IMAGE" > $TMP