mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Don't abort logfile error
Q&A Missed this, Apologies
This commit is contained in:
3
daily.sh
3
daily.sh
@ -23,8 +23,9 @@ arg="$1"
|
||||
status_run() {
|
||||
printf "%-50s" "$1"
|
||||
echo "$1" >> logs/daily.log
|
||||
bash -c "$2" &>> logs/daily.log
|
||||
tmp=$(bash -c "$2" 2>&1)
|
||||
ex=$?
|
||||
echo "$tmp" >> logs/daily.log
|
||||
echo "Returned: $ex" >> logs/daily.log
|
||||
[ $ex -eq 0 ] && echo -e ' \033[0;32mOK\033[0m' || echo -e ' \033[0;31mFAIL\033[0m'
|
||||
return $ex
|
||||
|
Reference in New Issue
Block a user