evolinux-base: check_hpraid.cron.sh: Fixed wrong <<< usage

This commit is contained in:
Benoît S. 2020-07-01 10:18:30 +09:00 committed by Gitea
parent 63bfef13ee
commit 0c9b9b2628

View file

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