summaryrefslogtreecommitdiff
path: root/extra/google-chrome/google-chrome.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'extra/google-chrome/google-chrome.SlackBuild')
-rwxr-xr-xextra/google-chrome/google-chrome.SlackBuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/google-chrome/google-chrome.SlackBuild b/extra/google-chrome/google-chrome.SlackBuild
index 6e166a80..894a0eec 100755
--- a/extra/google-chrome/google-chrome.SlackBuild
+++ b/extra/google-chrome/google-chrome.SlackBuild
@@ -37,9 +37,11 @@ case "$ARCH" in
esac
# Get the version from the Debian/Ubuntu .deb (thanks to Fred Richards):
VERSION=$(ar p google-chrome-${RELEASE}_current_${DEBARCH}.deb control.tar.xz 2> /dev/null | tar JxO ./control 2> /dev/null | grep Version | awk '{print $2}' | cut -d- -f1)
+if [ -z "$VERSION" ]; then # try to use control.tar.gz instead:
+ VERSION=$(ar p google-chrome-${RELEASE}_current_${DEBARCH}.deb control.tar.gz 2> /dev/null | tar zxO ./control 2> /dev/null | grep Version | awk '{print $2}' | cut -d- -f1)
+fi
BUILD=${BUILD:-1}
-
if [ ! $UID = 0 ]; then
cat << EOF