Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from reConNico/submenu-zero-fix
Browse files Browse the repository at this point in the history
fixed sub menu option zero
  • Loading branch information
faustbrian authored Feb 6, 2018
2 parents aea09e2 + 407d781 commit 5025e5f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
29 changes: 18 additions & 11 deletions ARKcommander.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,6 @@ do
read_sub_options
done

sub_menu
##turn
#pause
}
Expand Down Expand Up @@ -1238,7 +1237,7 @@ read_sub_options(){
5) subfive ;;
6) subsix ;;
7) seven ;;
0) break ;;
0) init ;;
*) echo -e "$(red " Incorrect option!")" && sleep 1
esac
}
Expand Down Expand Up @@ -1326,15 +1325,23 @@ sudo updatedb
proc_vars
#exit

init() {
# ----------------------------------------------
# Menu infinite loop
# ----------------------------------------------

while true
do
asciiart
# HERE COMES THE GITHUB CHECK
git_upd_check
show_menus
read_options
done
}

# ----------------------------------------------
# Menu infinite loop
# Init Application
# ----------------------------------------------

while true
do
asciiart
# HERE COMES THE GITHUB CHECK
git_upd_check
show_menus
read_options
done
init
29 changes: 18 additions & 11 deletions DARKcommander.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,6 @@ do
read_sub_options
done

sub_menu
##turn
#pause
}
Expand Down Expand Up @@ -1238,7 +1237,7 @@ read_sub_options(){
5) subfive ;;
6) subsix ;;
7) seven ;;
0) break ;;
0) init ;;
*) echo -e "$(red " Incorrect option!")" && sleep 1
esac
}
Expand Down Expand Up @@ -1326,15 +1325,23 @@ sudo updatedb
proc_vars
#exit

init() {
# ----------------------------------------------
# Menu infinite loop
# ----------------------------------------------

while true
do
asciiart
# HERE COMES THE GITHUB CHECK
git_upd_check
show_menus
read_options
done
}

# ----------------------------------------------
# Menu infinite loop
# Init Application
# ----------------------------------------------

while true
do
asciiart
# HERE COMES THE GITHUB CHECK
git_upd_check
show_menus
read_options
done
init

0 comments on commit 5025e5f

Please sign in to comment.