Skip to content

Commit 5503491

Browse files
committed
Use dpkg --print-architecture
1 parent 114c7bf commit 5503491

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/linux.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ link_apt_fast() {
77
fetch_package() {
88
if ! [ -e /tmp/Packages ]; then
99
. /etc/os-release
10-
deb_build_arch=$(dpkg-architecture -q DEB_BUILD_ARCH)
11-
curl -o /tmp/Packages.gz -sL "http://ppa.launchpad.net/ondrej/php/ubuntu/dists/$VERSION_CODENAME/main/binary-$deb_build_arch/Packages.gz"
10+
arch=$(dpkg --print-architecture)
11+
curl -o /tmp/Packages.gz -sL "http://ppa.launchpad.net/ondrej/php/ubuntu/dists/$VERSION_CODENAME/main/binary-$arch/Packages.gz"
1212
gzip -df /tmp/Packages.gz
1313
fi
1414
}

0 commit comments

Comments
 (0)