mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Use Omarchy log upload endpoint
This commit is contained in:
+2
-2
@@ -74,8 +74,8 @@ ACTION=$(gum choose "${OPTIONS[@]}")
|
||||
|
||||
case "$ACTION" in
|
||||
"Upload log")
|
||||
echo "Uploading debug log to 0x0.st..."
|
||||
URL=$(curl -sF "file=@$LOG_FILE" -Fexpires=24 https://0x0.st)
|
||||
echo "Uploading debug log to logs.omarchy.org..."
|
||||
URL=$(curl -sF "file=@$LOG_FILE" -Fexpires=24 https://logs.omarchy.org)
|
||||
if (( $? == 0 )) && [[ -n $URL ]]; then
|
||||
echo "✓ Log uploaded successfully!"
|
||||
echo "Share this URL:"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# omarchy:summary=Upload logs to 0x0.st
|
||||
# omarchy:summary=Upload logs to logs.omarchy.org
|
||||
# omarchy:args=<log-file>
|
||||
# omarchy:hidden=true
|
||||
|
||||
@@ -53,7 +53,7 @@ install)
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Uploading installation log to 0x0.st..."
|
||||
echo "Uploading installation log to logs.omarchy.org..."
|
||||
;;
|
||||
|
||||
this-boot)
|
||||
@@ -66,7 +66,7 @@ this-boot)
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Uploading current boot logs to 0x0.st..."
|
||||
echo "Uploading current boot logs to logs.omarchy.org..."
|
||||
;;
|
||||
|
||||
last-boot)
|
||||
@@ -79,7 +79,7 @@ last-boot)
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Uploading previous boot logs to 0x0.st..."
|
||||
echo "Uploading previous boot logs to logs.omarchy.org..."
|
||||
;;
|
||||
|
||||
installed|system-info)
|
||||
@@ -98,7 +98,7 @@ installed|system-info)
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Uploading system information to 0x0.st..."
|
||||
echo "Uploading system information to logs.omarchy.org..."
|
||||
;;
|
||||
|
||||
*)
|
||||
@@ -113,7 +113,7 @@ esac
|
||||
|
||||
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
|
||||
echo "✓ Log uploaded successfully!"
|
||||
|
||||
Reference in New Issue
Block a user