From 5ff5b1098d2fcaf7bd75c0c36c3547c432985a62 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 15 Apr 2014 12:29:04 +0100 Subject: [PATCH] cosmetic: Make use the REPO_API variable --- rpi-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpi-update b/rpi-update index 16fa599..b092cdd 100755 --- a/rpi-update +++ b/rpi-update @@ -221,7 +221,7 @@ command -v readelf >/dev/null 2>&1 || { # ask github for latest version hash REPO_API=${REPO_URI/github.com/api.github.com\/repos}/git/refs/heads/${BRANCH} -GITREV=$(curl -s ${REPO_URI/github.com/api.github.com\/repos}/git/refs/heads/${BRANCH} | awk '{ if ($1 == "\"sha\":") { print substr($2, 2, 40) } }') +GITREV=$(curl -s ${REPO_API} | awk '{ if ($1 == "\"sha\":") { print substr($2, 2, 40) } }') FW_REV=${FW_REV:-${GITREV}} if [[ "${FW_REV}" == "" ]]; then