diff --git a/external-winehq.sh b/external-winehq.sh index c34d226..d541f16 100644 --- a/external-winehq.sh +++ b/external-winehq.sh @@ -34,7 +34,7 @@ do apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-i386 rm -rf /etc/apt/preferences.d/0-external-sync.conf apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-external-i386 - if [[ $(cat $i-pika-i386) != $(cat $i-external-i386) ]] + if cat $i-pika-i386 | grep "^"$(cat $i-external-i386)"$" then echo $i >> ppp32.list fi @@ -53,7 +53,7 @@ do apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-pika-amd64 rm -rf /etc/apt/preferences.d/0-external-sync.conf apt-cache show $i | grep 'Version:' | cut -d":" -f2 | head -n1 | sed 's/ //g' > $i-external-amd64 - if [[ $(cat $i-pika-amd64) != $(cat $i-external-amd64) ]] + if cat $i-pika-amd64 | grep "^"$(cat $i-external-amd64)"$" then echo $i >> ppp64.list fi