add source
This commit is contained in:
parent
0f0fe951ee
commit
28ae1bafa9
15
source
Executable file
15
source
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
script_path=$(realpath "$0")
|
||||||
|
|
||||||
|
# Extract the directory from the script path
|
||||||
|
directory=$(dirname "$script_path")
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
for file in "$directory"/*.sh; do
|
||||||
|
if [ "$(basename "$file")" != update.sh ]; then
|
||||||
|
chmod +x "$file"
|
||||||
|
source "$file"
|
||||||
|
fi
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user