Permalink
Browse files

Fix running the upload.sh script from "make menu"

  • Loading branch information...
kmoore134 committed Nov 20, 2013
1 parent 60adce5 commit 80f532f50762223774a2893758b50d70fbae1942
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/menu.sh
View
@@ -80,13 +80,13 @@ TITLE="Main Menu"
cd ${PROGDIR}/scripts
-upmenu=""
if [ -e "upload.sh" ]; then
- upmenu="upload \"Upload Menu\""
+ # Start the main dialog
+ dialog --backtitle "$TITLE" --menu "Select a build option:" 16 50 40 world "Rebuild World/Kernel" packages "Build packages (Poudriere)" iso "Create ISO Files" ports "Ports menu" upload "Upload menu" exit "Exit" 2>${ans}
+else
+ dialog --backtitle "$TITLE" --menu "Select a build option:" 16 50 40 world "Rebuild World/Kernel" packages "Build packages (Poudriere)" iso "Create ISO Files" ports "Ports menu" exit "Exit" 2>${ans}
fi
-# Start the main dialog
-dialog --backtitle "$TITLE" --menu "Select a build option:" 16 50 40 world "Rebuild World/Kernel" packages "Build packages (Poudriere)" iso "Create ISO Files" $upmenu ports "Ports menu" exit "Exit" 2>${ans}
if [ $? -ne 0 ] ; then
echo "Canceled!"
exit_trap

0 comments on commit 80f532f

Please sign in to comment.