Updated the scripts to source the dependencies

This commit is contained in:
Andrii Dokhniak 2024-07-28 17:32:05 +02:00
parent 7ead4369ad
commit b86827411c
9 changed files with 26 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
. ./common-script.sh
setupAlacritty() {
echo "Install Alacritty if not already installed..."
if ! command_exists alacritty; then

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
. ./common-script.sh
setupKitty() {
echo "Install Kitty if not already installed..."
if ! command_exists kitty; then

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
. ./common-script.sh
setupRofi() {
echo "Install Rofi if not already installed..."
if ! command_exists rofi; then

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
. ./common-script.sh
# Check if the home directory and linuxtoolbox folder exist, create them if they don't
LINUXTOOLBOXDIR="$HOME/linuxtoolbox"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
. ./common-script.sh
installDepend() {
## Check for dependencies.
echo -e "${YELLOW}Installing dependencies...${RC}"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
. ./common-script.sh
# Check if the home directory and linuxtoolbox folder exist, create them if they don't
LINUXTOOLBOXDIR="$HOME/linuxtoolbox"

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
. ./common-script.sh
fastUpdate() {
case ${PACKAGER} in
pacman)

5
src/commands/test/lib.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
say_hello () {
echo Hi
}

6
src/commands/test/main.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# The current working directory will always be inside "commands"
. test/lib.sh
say_hello