From 91a28bfe66532f10dc8be30f94634ff2cafe8fe8 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sat, 11 Jan 2014 13:29:29 +0100 Subject: [PATCH] Fixed dpkgq to dpkg --- dpkg-frontend.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dpkg-frontend.sh b/dpkg-frontend.sh index f50271f..7d514c2 100755 --- a/dpkg-frontend.sh +++ b/dpkg-frontend.sh @@ -70,7 +70,7 @@ search_pkg() return 1 fi - $Dpkg --list | $Awk '{ print $2 }' | $Egrep -x $Search &> /dev/null + $Dpkg -l $Search | $Egrep -o "ii $Search" &> /dev/null if [ $? -eq 0 ]; then return 0 else @@ -115,10 +115,10 @@ show_selections() set_selections() { SetSelections=`$Zenity --title "dpkg-frontend" --entry \ - --text "Type selections for package $Search"` + --text "Type selections for package $Search"` echo "$Search $SetSelections" | $Dpkg --set-selections if [ $? -eq 0 ]; then - $Zentiy --title "dpkg-frontend" --info \ + $Zeniy --title "dpkg-frontend" --info \ --text "${SetSelections} is set for ${Search}" else $Zenity --title "dpkg-frontend" --error \