Use Omarchy log upload endpoint

This commit is contained in:
Ryan Hughes
2026-06-06 13:25:54 -04:00
parent 740f4e2c82
commit 42bdf374dd
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ ACTION=$(gum choose "${OPTIONS[@]}")
case "$ACTION" in case "$ACTION" in
"Upload log") "Upload log")
echo "Uploading debug log to 0x0.st..." echo "Uploading debug log to logs.omarchy.org..."
URL=$(curl -sF "file=@$LOG_FILE" -Fexpires=24 https://0x0.st) URL=$(curl -sF "file=@$LOG_FILE" -Fexpires=24 https://logs.omarchy.org)
if (( $? == 0 )) && [[ -n $URL ]]; then if (( $? == 0 )) && [[ -n $URL ]]; then
echo "✓ Log uploaded successfully!" echo "✓ Log uploaded successfully!"
echo "Share this URL:" echo "Share this URL:"
+6 -6
View File
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# omarchy:summary=Upload logs to 0x0.st # omarchy:summary=Upload logs to logs.omarchy.org
# omarchy:args=<log-file> # omarchy:args=<log-file>
# omarchy:hidden=true # omarchy:hidden=true
@@ -53,7 +53,7 @@ install)
exit 1 exit 1
fi fi
echo "Uploading installation log to 0x0.st..." echo "Uploading installation log to logs.omarchy.org..."
;; ;;
this-boot) this-boot)
@@ -66,7 +66,7 @@ this-boot)
exit 1 exit 1
fi fi
echo "Uploading current boot logs to 0x0.st..." echo "Uploading current boot logs to logs.omarchy.org..."
;; ;;
last-boot) last-boot)
@@ -79,7 +79,7 @@ last-boot)
exit 1 exit 1
fi fi
echo "Uploading previous boot logs to 0x0.st..." echo "Uploading previous boot logs to logs.omarchy.org..."
;; ;;
installed|system-info) installed|system-info)
@@ -98,7 +98,7 @@ installed|system-info)
exit 1 exit 1
fi fi
echo "Uploading system information to 0x0.st..." echo "Uploading system information to logs.omarchy.org..."
;; ;;
*) *)
@@ -113,7 +113,7 @@ esac
echo "" echo ""
URL=$(curl -sF "file=@$TEMP_LOG" -Fexpires=24 https://0x0.st) URL=$(curl -sF "file=@$TEMP_LOG" -Fexpires=24 https://logs.omarchy.org)
if (( $? == 0 )) && [[ -n $URL ]]; then if (( $? == 0 )) && [[ -n $URL ]]; then
echo "✓ Log uploaded successfully!" echo "✓ Log uploaded successfully!"