This commit is contained in:
Solomon Laing 2025-06-11 20:29:35 +09:30
parent 068865724a
commit 47378cfac5
12 changed files with 8 additions and 23 deletions

View File

@ -1,5 +1,6 @@
DEPENDENCIES_START DEPENDENCIES_START
yad yad
less
playerctl playerctl
zip zip
xorg-xmessage xorg-xmessage

View File

@ -11,8 +11,7 @@ case $input in
echo "continuing..." echo "continuing..."
;; ;;
esac esac
./check
check
script_dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) script_dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
filter="" filter=""
@ -56,4 +55,10 @@ for script in $scripts; do
fi fi
execute "$script" execute "$script"
if [[ $? -gt 0 ]]; then
echo "Something went wrong..."
fi
read -r -p "Press [ENTER] to continue"
done done

View File

@ -8,8 +8,6 @@
# Installs my customisation of dwmblocks # Installs my customisation of dwmblocks
#----------------------------------- #-----------------------------------
clear
if command -v dwmblocks &>/dev/null; then if command -v dwmblocks &>/dev/null; then
echo "dwmblocks is already installed on the system." echo "dwmblocks is already installed on the system."
exit 0 exit 0

View File

@ -8,8 +8,6 @@
# Installs my dotfiles # Installs my dotfiles
#----------------------------------- #-----------------------------------
clear
echo "This script is going to install my dotfiles." echo "This script is going to install my dotfiles."
function config { function config {

View File

@ -8,8 +8,6 @@
# Intsalls all of my system dependencies # Intsalls all of my system dependencies
#----------------------------------- #-----------------------------------
clear
default_programs="./default-programs" default_programs="./default-programs"
dependencies=$(sed -n '/DEPENDENCIES_START/,/DEPENDENCIES_END/p' $default_programs | sed -e 's/DEPENDENCIES_START//' -e 's/DEPENDENCIES_END//') 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//') laptop_dependencies=$(sed -n '/DEPENDENCIES_LAPTOP_START/,/DEPENDENCIES_LAPTOP_END/p' $default_programs | sed -e 's/DEPENDENCIES_LAPTOP_START//' -e 's/DEPENDENCIES_LAPTOP_END//')

View File

@ -8,8 +8,6 @@
# Installs my customisation of dmenu # Installs my customisation of dmenu
#----------------------------------- #-----------------------------------
clear
if command -v dmenu &>/dev/null; then if command -v dmenu &>/dev/null; then
echo "dmenu is already installed on the system." echo "dmenu is already installed on the system."
exit 0 exit 0

View File

@ -8,8 +8,6 @@
# Installs my customisation of dwm # Installs my customisation of dwm
#----------------------------------- #-----------------------------------
clear
if command -v dwm &>/dev/null; then if command -v dwm &>/dev/null; then
echo "dwm is already installed on the system." echo "dwm is already installed on the system."
exit 0 exit 0

View File

@ -9,8 +9,6 @@
# system. # system.
#----------------------------------- #-----------------------------------
clear
if command -v getnf &>/dev/null; then if command -v getnf &>/dev/null; then
echo "getnf is already installed on the system." echo "getnf is already installed on the system."
exit 0 exit 0

View File

@ -9,8 +9,6 @@
# the system. # the system.
#----------------------------------- #-----------------------------------
clear
default_programs="./default-programs" default_programs="./default-programs"
dependencies=$(sed -n '/MISC_START/,/MISC_END/p' $default_programs | sed -e 's/MISC_START//' -e 's/MISC_END//') 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 # run though each dependency and install it if it's not already installed
for dependency in $dependencies; do for dependency in $dependencies; do
sudo -v sudo -v
clear
if ! yay -Qi $dependency &>/dev/null; then if ! yay -Qi $dependency &>/dev/null; then
echo "Installing $dependency and it's dependencies..." echo "Installing $dependency and it's dependencies..."
yay -S --noconfirm $dependency yay -S --noconfirm $dependency

View File

@ -8,8 +8,6 @@
# Installs neovim on the system. # Installs neovim on the system.
#----------------------------------- #-----------------------------------
clear
if command -v neovim &>/dev/null; then if command -v neovim &>/dev/null; then
echo "neovim is already installed on the system." echo "neovim is already installed on the system."
exit 0 exit 0

View File

@ -8,8 +8,6 @@
# Installs my customisation of st # Installs my customisation of st
#----------------------------------- #-----------------------------------
clear
if command -v st &>/dev/null; then if command -v st &>/dev/null; then
echo "st is already installed on the system." echo "st is already installed on the system."
exit 0 exit 0

View File

@ -9,8 +9,6 @@
# system. # system.
#----------------------------------- #-----------------------------------
clear
if command -v yay &>/dev/null; then if command -v yay &>/dev/null; then
echo "yay is already installed on the system." echo "yay is already installed on the system."
exit 0 exit 0