updated install.sh and preset.sh
This commit is contained in:
12
install.sh
12
install.sh
@@ -25,6 +25,7 @@ echo "$(tput setaf 3)NOTE: If you are installing on a VM, ensure to enable 3D ac
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
read -p "$(tput setaf 6)Would you like to proceed? (y/n): $(tput sgr0)" proceed
|
read -p "$(tput setaf 6)Would you like to proceed? (y/n): $(tput sgr0)" proceed
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
echo "$(tput bold)$(tput setaf 7)Choose Y to use preset ONLY once you reviewed, updated or updated the preset.sh $(tput sgr0)"
|
echo "$(tput bold)$(tput setaf 7)Choose Y to use preset ONLY once you reviewed, updated or updated the preset.sh $(tput sgr0)"
|
||||||
echo "$(tput bold)$(tput setaf 7)If you are not sure what to do, choose N in the "Use Preset Settings" question $(tput sgr0)"
|
echo "$(tput bold)$(tput setaf 7)If you are not sure what to do, choose N in the "Use Preset Settings" question $(tput sgr0)"
|
||||||
@@ -38,21 +39,12 @@ if [ "$proceed" != "y" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $use_preset = [Yy] ]]; then
|
|
||||||
source ./preset.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Create Directory for Install Logs
|
# Create Directory for Install Logs
|
||||||
if [ ! -d Install-Logs ]; then
|
if [ ! -d Install-Logs ]; then
|
||||||
mkdir Install-Logs
|
mkdir Install-Logs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Use of Preset Settings
|
||||||
if [[ $use_preset = [Yy] ]]; then
|
if [[ $use_preset = [Yy] ]]; then
|
||||||
source ./preset.sh
|
source ./preset.sh
|
||||||
fi
|
fi
|
||||||
|
|||||||
10
preset.sh
10
preset.sh
@@ -1,5 +1,11 @@
|
|||||||
############ !!!!!Make sure you use the right answer or it may failed
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
###
|
#
|
||||||
|
# CREDIT to: https://github.com/PostCyberPunk for this Preset function
|
||||||
|
|
||||||
|
## -- Make sure you use the right answer or install script will fail ###
|
||||||
|
# Make sure proper AUR Helper is use NO Upperscript. Either paru or yay only is accepted
|
||||||
|
# The rest Change to Y for Yes and N for No.
|
||||||
|
|
||||||
### -Type AUR helper
|
### -Type AUR helper
|
||||||
### yay or paru
|
### yay or paru
|
||||||
aur_helper="yay"
|
aur_helper="yay"
|
||||||
|
|||||||
Reference in New Issue
Block a user