mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-13 20:01:13 +01:00
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:
parent
cdf7743120
commit
8423b86bdf
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue