Only search for the gpt tool if we need it.

Review URL: http://codereview.chromium.org/1747005
This commit is contained in:
robotboy 2010-04-21 14:46:00 -07:00
parent cb5f3ebe52
commit 32ddb4282f

View File

@ -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