evolinux-base: check_hpraid.cron.sh: Fixed wrong `<<<` usage
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Benoît S. 2020-07-01 10:18:30 +09:00
parent 9a8f1979bc
commit 1c050b481a
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ main() {
cp "$check_hpraid_output" "$check_hpraid_last"
if $use_mail; then
mail -s "RAID error on $hostname" "$clientmail" \
<<< "$check_hpraid_output"
< "$check_hpraid_output"
else
cat "$check_hpraid_output"
fi
@ -73,7 +73,7 @@ $(sed 's/^/> /g' "$check_hpraid_output")
EOT
if $use_mail; then
mail -s "RAID status is different on $hostname" \
"$clientmail" <<< "$body"
"$clientmail" < "$body"
else
cat "$body"
fi