improve formatting

pull/7/head
Botspot 5 years ago
parent cccaa1b2cf
commit f76ee8b1c0

22
gui

@ -56,23 +56,23 @@ $i
--button=Uninstall!"${DIRECTORY}/icons/uninstall.png":2 \ --button=Uninstall!"${DIRECTORY}/icons/uninstall.png":2 \
--button=Details!"${DIRECTORY}/icons/info.png"!'View more about the selected software:0' \ --button=Details!"${DIRECTORY}/icons/info.png"!'View more about the selected software:0' \
2>/dev/null)" 2>/dev/null)"
button=$? #get exit code to determine which button was pressed button=$? #get exit code to determine which button was pressed
echo "Button: ${button}" echo "Button: ${button}"
if [ $button -eq 252 ];then #if window manager x was pressed if [ $button -eq 252 ];then #if window manager x was pressed
exit 0 exit 0
fi fi
echo "Output: ${output}EOO" echo "Output: ${output}EOO"
if [ -z "$output" ];then if [ -z "$output" ];then
echo "output variable empty!" echo "output variable empty!"
yad --center --title='Pi-Apps' --width=310 \ yad --center --title='Pi-Apps' --width=310 \
--window-icon="${DIRECTORY}/icons/logo.png" \ --window-icon="${DIRECTORY}/icons/logo.png" \
--text="Mind reading is not supported. --text="Mind reading is not supported.
(You didn"\'"t select an App)" \ (You didn"\'"t select an App)" \
--button=OK:0 --button=OK:0
fi fi
done done
case $button in case $button in

Loading…
Cancel
Save