changed calling script from sh > ./

This commit is contained in:
Ryan Bakkes 2022-10-05 01:14:43 +02:00
parent 6a7134147e
commit 48937f75bb

View File

@ -45,8 +45,8 @@ zsh_prompt() {
sudo -u $SUDO_USER touch ~/.tempzshrc sudo -u $SUDO_USER touch ~/.tempzshrc
# set up the basics of zsh # set up the basics of zsh
sh src/services/zsh/zsh.sh ./src/services/zsh/zsh.sh
sh src/services/zsh/Oh-My-ZSH.sh ./src/services/zsh/Oh-My-ZSH.sh
fi fi
} }
@ -158,7 +158,7 @@ install_files() {
#Reading each line and execute file #Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then if ! [ -x "$(command -v $line)" ]; then
sh ../importantinstalls/$line.sh ./../importantinstalls/$line.sh
else else
echo "$line is already installed" echo "$line is already installed"
fi fi
@ -170,7 +170,7 @@ install_files() {
#Reading each line and execute file #Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then if ! [ -x "$(command -v $line)" ]; then
sh ../applications/$line.sh ./../applications/$line.sh
else else
echo "$line is already installed" echo "$line is already installed"
fi fi
@ -202,7 +202,7 @@ install_files() {
ProgressBar ${start} ${end} ${line} ProgressBar ${start} ${end} ${line}
#Reading each line and execute file #Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then if ! [ -x "$(command -v $line)" ]; then
sh ../importantinstalls/$line.sh >> /dev/null 2>&1 ./../importantinstalls/$line.sh >> /dev/null 2>&1
fi fi
# update progressbar # update progressbar
@ -223,7 +223,7 @@ install_files() {
ProgressBar ${start} ${end} ${line} ProgressBar ${start} ${end} ${line}
#Reading each line and execute file #Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then if ! [ -x "$(command -v $line)" ]; then
sh ../applications/$line.sh >> /dev/null 2>&1 ./../applications/$line.sh >> /dev/null 2>&1
fi fi
# update progressbar # update progressbar
@ -295,7 +295,7 @@ install_oh_my_zsh() {
# run option # run option
if [[ ${zshOption,,} = "y" ]]; then if [[ ${zshOption,,} = "y" ]]; then
# Run Ohmyzsh (ends script) # Run Ohmyzsh (ends script)
sh services/zsh/Oh-My-ZSH.sh ./services/zsh/Oh-My-ZSH.sh
fi fi
} }