check if it's installed aleady before installing essential packages
This commit is contained in:
parent
bd5e960d79
commit
3826f0916b
1 changed files with 8 additions and 3 deletions
11
setup.sh
11
setup.sh
|
@ -77,10 +77,16 @@ install_paru() {
|
||||||
setup_essentials() {
|
setup_essentials() {
|
||||||
# install paru if it does not exist
|
# install paru if it does not exist
|
||||||
if ! command -v paru &> /dev/null; then
|
if ! command -v paru &> /dev/null; then
|
||||||
|
log "paru was not installed already. Installing now..."
|
||||||
install_paru
|
install_paru
|
||||||
fi
|
fi
|
||||||
|
|
||||||
package_install dialog &> /dev/null
|
# install dialog if it's not installed already
|
||||||
|
if ! command -v dialog &> /dev/null; then
|
||||||
|
log "dialog was not installed already. Installing now..."
|
||||||
|
package_install dialog
|
||||||
|
fi
|
||||||
|
|
||||||
# enable multilib, color, parallel download, and total download in /etc/pacman.conf
|
# enable multilib, color, parallel download, and total download in /etc/pacman.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -639,6 +645,7 @@ fi
|
||||||
|
|
||||||
# #################### [ START ] ####################
|
# #################### [ START ] ####################
|
||||||
|
|
||||||
|
# move to script directory (repo root)
|
||||||
cd "$SCRIPT_DIR" || {
|
cd "$SCRIPT_DIR" || {
|
||||||
error "FAILED TO FIND SCRIPT DIRECTORY"
|
error "FAILED TO FIND SCRIPT DIRECTORY"
|
||||||
exit
|
exit
|
||||||
|
@ -656,8 +663,6 @@ if [[ $REPLY =~ ^[^Yy]$ ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
|
||||||
|
|
||||||
|
|
||||||
# #################### [ MAIN ] ####################
|
# #################### [ MAIN ] ####################
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue