diff --git a/disk-check.sh b/disk-check.sh index dfea0e7..b7dbf14 100644 --- a/disk-check.sh +++ b/disk-check.sh @@ -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