better
This commit is contained in:
parent
068865724a
commit
47378cfac5
@ -1,5 +1,6 @@
|
||||
DEPENDENCIES_START
|
||||
yad
|
||||
less
|
||||
playerctl
|
||||
zip
|
||||
xorg-xmessage
|
||||
@ -11,8 +11,7 @@ case $input in
|
||||
echo "continuing..."
|
||||
;;
|
||||
esac
|
||||
|
||||
check
|
||||
./check
|
||||
|
||||
script_dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
||||
filter=""
|
||||
@ -56,4 +55,10 @@ for script in $scripts; do
|
||||
fi
|
||||
|
||||
execute "$script"
|
||||
|
||||
if [[ $? -gt 0 ]]; then
|
||||
echo "Something went wrong..."
|
||||
fi
|
||||
|
||||
read -r -p "Press [ENTER] to continue"
|
||||
done
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
# Installs my customisation of dwmblocks
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
if command -v dwmblocks &>/dev/null; then
|
||||
echo "dwmblocks is already installed on the system."
|
||||
exit 0
|
||||
@ -8,8 +8,6 @@
|
||||
# Installs my dotfiles
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
echo "This script is going to install my dotfiles."
|
||||
|
||||
function config {
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
# Intsalls all of my system dependencies
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
default_programs="./default-programs"
|
||||
dependencies=$(sed -n '/DEPENDENCIES_START/,/DEPENDENCIES_END/p' $default_programs | sed -e 's/DEPENDENCIES_START//' -e 's/DEPENDENCIES_END//')
|
||||
laptop_dependencies=$(sed -n '/DEPENDENCIES_LAPTOP_START/,/DEPENDENCIES_LAPTOP_END/p' $default_programs | sed -e 's/DEPENDENCIES_LAPTOP_START//' -e 's/DEPENDENCIES_LAPTOP_END//')
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
# Installs my customisation of dmenu
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
if command -v dmenu &>/dev/null; then
|
||||
echo "dmenu is already installed on the system."
|
||||
exit 0
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
# Installs my customisation of dwm
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
if command -v dwm &>/dev/null; then
|
||||
echo "dwm is already installed on the system."
|
||||
exit 0
|
||||
|
||||
@ -9,8 +9,6 @@
|
||||
# system.
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
if command -v getnf &>/dev/null; then
|
||||
echo "getnf is already installed on the system."
|
||||
exit 0
|
||||
|
||||
@ -9,8 +9,6 @@
|
||||
# the system.
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
default_programs="./default-programs"
|
||||
dependencies=$(sed -n '/MISC_START/,/MISC_END/p' $default_programs | sed -e 's/MISC_START//' -e 's/MISC_END//')
|
||||
|
||||
@ -28,7 +26,6 @@ failures=()
|
||||
# run though each dependency and install it if it's not already installed
|
||||
for dependency in $dependencies; do
|
||||
sudo -v
|
||||
clear
|
||||
if ! yay -Qi $dependency &>/dev/null; then
|
||||
echo "Installing $dependency and it's dependencies..."
|
||||
yay -S --noconfirm $dependency
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
# Installs neovim on the system.
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
if command -v neovim &>/dev/null; then
|
||||
echo "neovim is already installed on the system."
|
||||
exit 0
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
# Installs my customisation of st
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
if command -v st &>/dev/null; then
|
||||
echo "st is already installed on the system."
|
||||
exit 0
|
||||
|
||||
@ -9,8 +9,6 @@
|
||||
# system.
|
||||
#-----------------------------------
|
||||
|
||||
clear
|
||||
|
||||
if command -v yay &>/dev/null; then
|
||||
echo "yay is already installed on the system."
|
||||
exit 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user