diff --git a/automation/pressreleases_plow.sh b/automation/pressreleases_plow.sh index 16fe792..d90e8f2 100755 --- a/automation/pressreleases_plow.sh +++ b/automation/pressreleases_plow.sh @@ -30,7 +30,8 @@ if [ $scriptname != "badbadbad" ]; then Rscript --no-save --no-restore $CLESSN_ROOT_DIR/$foldername/$scriptname --log_output $2 --dataframe_mode $3 --hub_mode $4 --download_data $5 --translate $6 2>&1 | tee "$scriptname.out" ret=$? sed 's/\"/\\"/g' -i $scriptname.out - sed 's/ //g ' -i $scriptname.out + sed 's/ +//g ' -i $scriptname.out fi @@ -53,7 +54,7 @@ if [ $ret -ne 0 ]; then output=`tail -n 10 $scriptname.out` curl -X POST -H 'Content-type: application/json' --data "$(generate_post_data)" https://hooks.slack.com/services/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 else - output=`tail -n 2 $scriptname.out` + output=`tail -n 6 $scriptname.out` curl -X POST -H 'Content-type: application/json' --data "$(generate_post_data)" https://hooks.slack.com/services/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 fi