ordered into /lib

put all subscripts into lib for readability
This commit is contained in:
2026-07-14 16:56:28 +02:00
parent 925c624351
commit 20781c9d90
11 changed files with 6 additions and 20 deletions

15
test.sh
View File

@@ -4,15 +4,12 @@
DIR="${BASH_SOURCE%/*}"
DESKTOP_PATH=$(xdg-user-dir DESKTOP)
OUT="$DESKTOP_PATH/device_info.txt"
source drives.sh
source RAM.sh
source camera.sh
source speaker.sh
source wifi.sh
source lan.sh
source screen.sh
source battery.sh
source model.sh
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
for file in "$SCRIPT_DIR"/lib/*.sh; do
source "$file"
done
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi