Updates
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# ------------------------------------------------------
|
||||
# Install required packages
|
||||
# ------------------------------------------------------
|
||||
echo -e "${GREEN}"
|
||||
figlet "Packages"
|
||||
echo -e "${NONE}"
|
||||
if [ -d ~/dotfiles ] ;then
|
||||
echo "Do you want to check for new packages only (faster installation)"
|
||||
echo "or do you want to reinstall all packages again? (can help to fix issues)"
|
||||
if gum confirm "How do you want to proceed?" --affirmative "Check for new packages only" --negative "Reinstall and add new packages" ;then
|
||||
force_install=0
|
||||
elif [ $? -eq 130 ]; then
|
||||
echo "Installation canceled."
|
||||
exit 130
|
||||
else
|
||||
force_install=1
|
||||
fi
|
||||
else
|
||||
echo "Do you want to reinstall all already installed packages and install the required new packages? (recommended)"
|
||||
echo "or do you want to install the new required packages only? (could be faster installation)"
|
||||
if gum confirm "How do you want to proceed?" --affirmative "Reinstall and add new packages" --negative "Check for new packages only" ;then
|
||||
force_install=1
|
||||
elif [ $? -eq 130 ]; then
|
||||
echo "Installation canceled."
|
||||
exit 130
|
||||
else
|
||||
force_install=0
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user