56 lines
790 B
Bash
Executable File
56 lines
790 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
|
|
}
|
|
|
|
fun0() {
|
|
return 0
|
|
}
|
|
|
|
if [ "$(id -u)" -ne 0 ]; then
|
|
echo "**"
|
|
echo "** ERROR: script has to be run as superuser!"
|
|
echo "**"
|
|
exit 100
|
|
fi
|
|
|
|
fun0
|
|
rc=$?
|
|
|
|
if [ $rc -eq 0 ]; then
|
|
echo "$rc -eq 0"
|
|
fi
|
|
|
|
#echo "result=$rc0"
|
|
|
|
exit |