obosdi-pkg/install/desktop/openbox/packages

29 lines
494 B
Text
Raw Normal View History

2015-08-29 16:26:53 -06:00
#!/bin/bash
. ./lib
options=()
2015-08-29 16:38:04 -06:00
items=$(pacman -Ssq openbox)
2015-08-29 16:26:53 -06:00
for item in $items; do
2015-08-29 17:05:30 -06:00
case $item in
"openbox-themes-only") options+=("$item" "" off);;
*) options+=("$item" "" on);;
2015-08-29 17:06:40 -06:00
esac
2015-08-29 16:26:53 -06:00
done
sel=$(whiptail --backtitle "$apptitle" --title "Openbox Install :" --checklist "" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
for itm in $sel; do
pkg="$pkg $(echo $itm | sed 's/"//g')"
done
instpkg "$pkg" "$aurpkg"
exit 0