From 55034917ed721f340fb80b9683db792359fc3572 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 30 Aug 2022 14:25:36 +0530 Subject: [PATCH] Use dpkg --print-architecture --- src/scripts/linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 4b11983..d74c3cf 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -7,8 +7,8 @@ link_apt_fast() { fetch_package() { if ! [ -e /tmp/Packages ]; then . /etc/os-release - deb_build_arch=$(dpkg-architecture -q DEB_BUILD_ARCH) - curl -o /tmp/Packages.gz -sL "http://ppa.launchpad.net/ondrej/php/ubuntu/dists/$VERSION_CODENAME/main/binary-$deb_build_arch/Packages.gz" + arch=$(dpkg --print-architecture) + curl -o /tmp/Packages.gz -sL "http://ppa.launchpad.net/ondrej/php/ubuntu/dists/$VERSION_CODENAME/main/binary-$arch/Packages.gz" gzip -df /tmp/Packages.gz fi }