chore: cleanup
This commit is contained in:
@@ -55,7 +55,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
@objc func openLog() {
|
||||
let logPath = (NSHomeDirectory() as NSString)
|
||||
.appendingPathComponent("Documents/Photon/.photon-upload.log")
|
||||
.appendingPathComponent("Documents/Photon/photon-upload.log")
|
||||
NSWorkspace.shared.open(URL(fileURLWithPath: logPath))
|
||||
}
|
||||
|
||||
|
||||
@@ -73,14 +73,6 @@ setup_directories() {
|
||||
log "INFO" "Directory setup complete"
|
||||
}
|
||||
|
||||
# Function to generate a random filename
|
||||
# generate_random_filename() {
|
||||
# local extension="$1"
|
||||
# local timestamp=$(date +%s)
|
||||
# local random_part=$(openssl rand -hex 4)
|
||||
# echo "${timestamp}_${random_part}.${extension}"
|
||||
# }
|
||||
|
||||
generate_random_filename() {
|
||||
local extension="$1"
|
||||
local random_part=$(openssl rand -base64 6 | tr -dc 'A-Za-z' | head -c 8)
|
||||
@@ -124,7 +116,6 @@ validate_ssh_key() {
|
||||
chmod 600 "$SSH_KEY_PATH"
|
||||
fi
|
||||
|
||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [DEBUG] Using SSH key authentication: $SSH_KEY_PATH" >> "$LOGFILE"
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -250,7 +241,6 @@ generate_thumbnails() {
|
||||
|
||||
local response
|
||||
if response=$(curl -s "https://${PHOTON_DOMAIN}/job/generate_thumbnails" 2>&1); then
|
||||
log "INFO" "Thumbnail generation response: $response"
|
||||
|
||||
# Parse JSON response to check status
|
||||
if echo "$response" | grep -q '"status":"success"'; then
|
||||
|
||||
Reference in New Issue
Block a user