ordered into /lib
put all subscripts into lib for readability
This commit is contained in:
15
test.sh
15
test.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user