add in a 'Return to Main Menu' from main package info menu; thanks to Murat D. Kadirov for the suggestion

This commit is contained in:
chess.griffin 2008-08-19 03:41:35 +00:00
parent cdf7743120
commit 8423b86bdf

View file

@ -362,14 +362,15 @@ APP="$(cat $TMP/sbopkg_item_selection)"
U="README"
while [ 0 ]; do
dialog --default-item "$U" --title "$APP Information" --menu \
"Please choose an item or press <Cancel> to exit.\n" 20 60 7 \
"Please choose an item or press <Cancel> to exit.\n" 20 60 8 \
"README" "View the README file" \
"Info" "View the .info file" \
"Slack-desc" "View the slack-desc file" \
"SlackBuild" "View the SlackBuild file" \
"Edit" "Create and edit a local SlackBuild" \
"Delete" "Delete the local SlackBuild" \
"Build" "Build a package for $APP" 2>$TMP/sbopkg_info_selection
"Build" "Build a package for $APP" \
"Return" "Return to Main Menu" 2>$TMP/sbopkg_info_selection
if [ $? = 1 ]; then
break
fi
@ -423,6 +424,10 @@ as the root user in order to build packages." 8 30
fi
rm -rf $SBOPKGOUTPUT
fi
if [ "$U" = "Return" ]; then
rm -rf $TMP/sbopkg_*
main_menu
fi
done
}