42 lines
648 B
Bash
Executable File
42 lines
648 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
HERE=$(dirname "$0")
|
|
|
|
. $HERE/main.inc.sh
|
|
|
|
# nicht auf calvados
|
|
#. $HERE/$HOST_NAME
|
|
|
|
test() {
|
|
for i in "$@"; do echo "$i"; done
|
|
}
|
|
|
|
isFunction() { declare -Ff "$1" ; }
|
|
|
|
#nas_test
|
|
#nathan_test
|
|
#hamiller_test
|
|
#test1
|
|
|
|
|
|
list1() {
|
|
EXCL=("eaDir" "Temporary Items" "lost+found" backups)
|
|
ONE="erster #1"
|
|
TWO="zweiter #1"
|
|
#for i in "${a[@]}"; do echo "$i"; done
|
|
}
|
|
list2() {
|
|
EXCL=("@eaDir" "Temporary Items" "lost+found")
|
|
ONE="eins2"
|
|
TWO="zwei2"
|
|
return 0
|
|
#for i in "${a[@]}"; do echo "$i"; done
|
|
}
|
|
|
|
func=list3
|
|
|
|
if ! $func 2>/dev/null ; then echo "success"; else echo "error"; fi
|
|
echo "$EXCL"
|
|
|
|
exit
|