mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-16 05:19:58 +01:00
installer - error handling into logfile
This commit is contained in:
parent
d69fd2e23a
commit
1248ff7e99
|
|
@ -6,11 +6,13 @@ function exitcodefunction {
|
|||
module=$3
|
||||
|
||||
if [ $errorcode -ne "0" ]; then
|
||||
echo "Action: $action on $module failed." >> $boswatchpath/install/setup_log.txt
|
||||
echo "Exitcode: $errorcode" >> $boswatchpath/install/setup_log.txt
|
||||
echo "Action: $action on $module failed."
|
||||
echo "Exitcode: $errorcode"
|
||||
exit 1
|
||||
else
|
||||
echo "Action: $action on $module ok."
|
||||
echo "Action: $action on $module ok." >> $boswatchpath/install/setup_log.txt
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue