From 28ae1bafa993c23a5ca2233bff4a02ce1c23660e Mon Sep 17 00:00:00 2001 From: constantin Date: Wed, 4 Sep 2024 16:00:06 +0200 Subject: [PATCH] add source --- source | 15 +++++++++++++++ update => update.sh | 0 2 files changed, 15 insertions(+) create mode 100755 source rename update => update.sh (100%) diff --git a/source b/source new file mode 100755 index 0000000..c5ca096 --- /dev/null +++ b/source @@ -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 \ No newline at end of file diff --git a/update b/update.sh similarity index 100% rename from update rename to update.sh