From 65badd01e69a9137834fcf4b79b5c5eca68c110f Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Thu, 28 Sep 2023 21:20:46 +0300 Subject: [PATCH] Update external-winehq.sh --- external-winehq.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/external-winehq.sh b/external-winehq.sh index c7e7cb3..07aadc1 100644 --- a/external-winehq.sh +++ b/external-winehq.sh @@ -31,10 +31,11 @@ do echo 'Package': * > /etc/apt/preferences.d/0-external-sync.conf echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-external-sync.conf echo 'Pin-Priority: 1000' >> /etc/apt/preferences.d/0-external-sync.conf - if apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-i386 + if apt-cache show $i then - true + apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-i386 else + apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-i386 echo $i >> ppp32.list fi rm -rf /etc/apt/preferences.d/0-external-sync.conf @@ -57,10 +58,11 @@ do echo 'Package': * > /etc/apt/preferences.d/0-external-sync.conf echo 'Pin: release c=main' >> /etc/apt/preferences.d/0-external-sync.conf echo 'Pin-Priority: 1000' >> /etc/apt/preferences.d/0-external-sync.conf - if apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-amd64 + if apt-cache show $i then - true + apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-amd64 else + apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-amd64 echo $i >> ppp64.list fi rm -rf /etc/apt/preferences.d/0-external-sync.conf