Update disk-check.sh
This commit is contained in:
parent
894fe5fb8f
commit
8a6f7416bd
|
@ -101,7 +101,9 @@ echo "Uploading report to Hastebin..." | tee -a "$LOG_FILE"
|
|||
response=$(curl -s -X POST -T "$LOG_FILE" "$HASTE_URL")
|
||||
if [[ $response == *"key"* ]]; then
|
||||
key=$(echo "$response" | jq -r '.key')
|
||||
echo "Report available at: $HASTE_URL/$key" | tee -a "$LOG_FILE"
|
||||
# Remove /documents/ and use the key to form the correct URL
|
||||
report_url="https://haste.nixc.us/$key"
|
||||
echo "Report available at: $report_url" | tee -a "$LOG_FILE"
|
||||
else
|
||||
echo "Failed to upload report to Hastebin. Response: $response" | tee -a "$LOG_FILE"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue