Fixed error when logging speedtest-cli result to csv file
This commit is contained in:
parent
e1ad84e6a9
commit
db33ec1969
@ -222,7 +222,7 @@ if [ "$log" -eq 1 ]; then
|
|||||||
echo "Variable is set to 1. Running command A."
|
echo "Variable is set to 1. Running command A."
|
||||||
|
|
||||||
# Append the result to the log file
|
# Append the result to the log file
|
||||||
echo "$(date +"%Y-%m-%d %H:%M:%S"),,Speedtest.net,$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE"
|
echo "$(date +"%Y-%m-%d %H:%M:%S"),$WAN,Speedtest.net,$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE"
|
||||||
|
|
||||||
# Check if the variable is set to 0
|
# Check if the variable is set to 0
|
||||||
elif [ "$log" -eq 0 ]; then
|
elif [ "$log" -eq 0 ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user