Skip to content

Commit

Permalink
Merge pull request #15 from clessn/fixLogsPressReleases2
Browse files Browse the repository at this point in the history
Corriger le bon fichier bash
  • Loading branch information
p2xcode authored Mar 29, 2023
2 parents c5d3e0a + 942d2d4 commit 5d38940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions automation/pressreleases_plow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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

Expand Down

0 comments on commit 5d38940

Please sign in to comment.