Skip to content

Commit

Permalink
Update Brewautom.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
iAGorynT committed Dec 31, 2023
1 parent a6a0c79 commit 98857e9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions ShellScripts/Brewautom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
# Trap Ctl-C and Require a Menu Selection to Exit Script
trap 'echo -e "\nCtrl-C will not terminate $0."' INT

function autoupdatestart {
function autoupdatestatus {
clear
echo "Starting Brew Autoupdate..."
echo "Brew Autoupdate Status..."
echo
brew autoupdate start --upgrade --greedy --cleanup --enable-notification --immediate
brew autoupdate status
}

function autoupdatestatus {
function autoupdatestart {
clear
echo "Brew Autoupdate Status..."
echo "Starting Brew Autoupdate..."
echo
brew autoupdate status
brew autoupdate start --upgrade --greedy --cleanup --enable-notification --immediate
}

function autoupdatestop {
Expand Down Expand Up @@ -42,8 +42,8 @@ function menu {
clear
echo
echo -e "\t\t\tBrew Autoupdate Menu\n"
echo -e "\t1. Start Autoupdate"
echo -e "\t2. Autoupdate Status"
echo -e "\t1. Autoupdate Status"
echo -e "\t2. Start Autoupdate"
echo -e "\t3. Stop Autoupdate"
echo -e "\t4. Delete Autoupdate"
echo -e "\t5. Autoupdate Help"
Expand All @@ -58,11 +58,12 @@ do
case $option in
0)
break ;;

1)
autoupdatestart ;;
autoupdatestatus ;;

2)
autoupdatestatus ;;
autoupdatestart ;;

3)
autoupdatestop ;;
Expand Down

0 comments on commit 98857e9

Please sign in to comment.