Fixed missing indenting, vim messed it up?
This commit is contained in:
parent
91665b4f0d
commit
065795d198
@ -27,6 +27,7 @@ Author="Jack-Benny Persson (jack-benny@cyberinfo.se)"
|
||||
# Binaries
|
||||
Which="/usr/bin/which"
|
||||
Aptget="/usr/bin/apt-get"
|
||||
|
||||
# Binaries entered in the list will be avalible to the script as variables with
|
||||
# the first letter uppercase
|
||||
Binaries=(dpkg sed awk egrep printf cat grep mktemp rm tail zenity)
|
||||
@ -68,6 +69,7 @@ Search=`$Zenity --title "dpkg-frontend" --entry \
|
||||
if [ $? -eq 1 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
$Dpkg --list | $Awk '{ print $2 }' | $Egrep -x $Search &> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
return 0
|
||||
@ -105,7 +107,7 @@ fi
|
||||
|
||||
show_selections()
|
||||
{
|
||||
Selections=`dpkg --get-selections $Search | awk '{ print $2 }'`
|
||||
Selections=`$Dpkg --get-selections $Search | awk '{ print $2 }'`
|
||||
$Zenity --title "dpkg-frontend" \
|
||||
--info --text "Selections for <b>$Search</b> is: <b>${Selections}</b>"
|
||||
}
|
||||
@ -113,7 +115,7 @@ $Zenity --title "dpkg-frontend" \
|
||||
set_selections()
|
||||
{
|
||||
SetSelections=`$Zenity --title "dpkg-frontend" --entry \
|
||||
--text="Type selections for package <b>$Search</b>"`
|
||||
--text "Type selections for package <b>$Search</b>"`
|
||||
echo "$Search $SetSelections" | $Dpkg --set-selections
|
||||
if [ $? -eq 0 ]; then
|
||||
$Zentiy --title "dpkg-frontend" --info \
|
||||
|
Loading…
x
Reference in New Issue
Block a user