Olli Graf
2 months ago
3 changed files with 24 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
#! /usr/bin/bash |
|||
|
|||
./sub.sh ${1} |
|||
|
|||
if [ ${?} -eq 0 ]; then |
|||
echo "sub.sh erfolgreich" |
|||
else |
|||
echo "sub.sh fehlgeschlagen" |
|||
fi |
|||
|
@ -0,0 +1,4 @@ |
|||
# /usr/bin/bash |
|||
|
|||
echo "Beispiel für exit Code" |
|||
exit 2 |
@ -0,0 +1,10 @@ |
|||
# !/usr/bin/bash |
|||
|
|||
if [ "${1}" == "fail" ]; then |
|||
echo " ${0}: failing" |
|||
exit 1 |
|||
fi |
|||
|
|||
|
|||
exit 0 |
|||
|
Loading…
Reference in new issue