This commit is contained in:
Hartmut Bauer committed 2025-04-05 12:33:52 +02:00
1 parent 050c3ccd9e
commit b079912dc7
8 files changed
+325 -104

No files matched your search

+19 -4
View File
@@ -33,9 +33,24 @@ list2() {
#for i in "${a[@]}"; do echo "$i"; done
}
func=list3
fun0() {
return 0
}
if ! $func 2>/dev/null ; then echo "success"; else echo "error"; fi
echo "$EXCL"
if [ "$(id -u)" -ne 0 ]; then
echo "**"
echo "** ERROR: script has to be run as superuser!"
echo "**"
exit 100
fi
exit
fun0
rc=$?
if [ $rc -eq 0 ]; then
echo "$rc -eq 0"
fi
#echo "result=$rc0"
exit