diff options
author | Victor Hsieh <victorhsieh@chromium.org> | 2016-08-19 14:12:58 -0700 |
---|---|---|
committer | Victor Hsieh <victorhsieh@chromium.org> | 2016-08-19 21:48:31 +0000 |
commit | 16f1b29e76ebcd72bc9081b982c4afbf1619fc95 (patch) | |
tree | 802d5bf85bc4e0dc0f04c915c8206ff4a11fd61c /scripts | |
parent | 928f2405b8374a07a8dd0b1364ffac077f1e9b1f (diff) | |
download | vboot-16f1b29e76ebcd72bc9081b982c4afbf1619fc95.tar.gz |
Refer keytool using relative path
We will assume JDK bin/ is in the PATH, instead of using an absolute
path.
TEST=sign_official_image.sh
BUG=b:29915721,chrome-os-partner:56279
Change-Id: I55379a8409b7d81f213d4d7418133691fa8152cf
Reviewed-on: https://chromium-review.googlesource.com/373558
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Victor Hsieh <victorhsieh@chromium.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/image_signing/sign_android_image.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/image_signing/sign_android_image.sh b/scripts/image_signing/sign_android_image.sh index 90b92484..019f15e4 100755 --- a/scripts/image_signing/sign_android_image.sh +++ b/scripts/image_signing/sign_android_image.sh @@ -8,8 +8,6 @@ set -e -keytool_bin="/usr/local/buildtools/java/jdk/bin/keytool" - # Print usage string usage() { cat <<EOF @@ -39,7 +37,7 @@ choose_key() { local apk="$1" local sha1=$(unzip -p "${apk}" META-INF/CERT.RSA | \ - "${keytool_bin}" -printcert | awk '/^\s*SHA1:/ {print $2}') + keytool -printcert | awk '/^\s*SHA1:/ {print $2}') # Fingerprints below are generated by: # $ keytool -file vendor/google/certs/cheetskeys/$NAME.x509.pem -printcert \ |