addet return to menu function
This commit is contained in:
parent
783765ed65
commit
b95fa18b55
1 changed files with 12 additions and 4 deletions
|
@ -52,6 +52,12 @@ print_color() {
|
|||
printf "%b%s%b\n" "$1" "$2" "$NC"
|
||||
}
|
||||
|
||||
# Function to return to the main menu
|
||||
return_to_menu() {
|
||||
echo_info "Returning to the main menu in 3 seconds..."
|
||||
sleep 3
|
||||
}
|
||||
|
||||
gitDir="$HOME/git/dotfiles"
|
||||
dotRemote="https://git.k4li.de/dotfiles"
|
||||
instRemote="https://git.k4li.de/scripts/sh/raw/branch/main/installs"
|
||||
|
@ -101,7 +107,8 @@ nvimSetup() {
|
|||
git clone --branch minimal --recurse-submodule --depth=1 "${dotRemote}/nvim.git" "$gitDir/nvim"
|
||||
fi
|
||||
fi
|
||||
sleep 2
|
||||
|
||||
return_to_menu
|
||||
}
|
||||
|
||||
# Function to handle CLI tool installation
|
||||
|
@ -122,7 +129,8 @@ nvimMinimalSetup() {
|
|||
git clone --branch minimal --recurse-submodule --depth=1 "${dotRemote}/nvim.git" "$gitDir/nvim-minimal"
|
||||
fi
|
||||
fi
|
||||
sleep 2
|
||||
|
||||
return_to_menu
|
||||
}
|
||||
|
||||
installStuff() {
|
||||
|
@ -132,7 +140,7 @@ installStuff() {
|
|||
echo_note "Installing from $instRemote/$gitPackage"
|
||||
curl -fsSL "${instRemote}/${gitPackage}.sh" | sh
|
||||
|
||||
sleep 3
|
||||
return_to_menu
|
||||
}
|
||||
|
||||
sudoOptions() {
|
||||
|
@ -142,7 +150,7 @@ sudoOptions() {
|
|||
else
|
||||
echo_error "There is no /etc/sudoers file."
|
||||
fi
|
||||
sleep 3
|
||||
return_to_menu
|
||||
}
|
||||
|
||||
# Menu options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue