althttpd, pikchr: fix updateScript to strip time from date

This commit is contained in:
Ben Siraphob
2026-02-13 15:26:52 -05:00
parent ca41ffc16d
commit abc2c516ee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ json_output=$(echo "$output" | gawk '/^{/{p=1} p')
full_rev=$(echo "$json_output" | jq -r '.rev')
new_rev="${full_rev:0:16}" # Use 16-char prefix for consistency
new_hash=$(echo "$json_output" | jq -r '.hash')
commit_date=$(echo "$json_output" | jq -r '.date')
commit_date=$(echo "$json_output" | jq -r '.date' | cut -dT -f1)
# Fallback to current date if extraction fails
if [ -z "$commit_date" ] || [ "$commit_date" = "null" ]; then
+1 -1
View File
@@ -21,7 +21,7 @@ json_output=$(echo "$output" | gawk '/^{/{p=1} p')
full_rev=$(echo "$json_output" | jq -r '.rev')
new_rev="${full_rev:0:16}" # Use 16-char prefix for consistency
new_hash=$(echo "$json_output" | jq -r '.hash')
commit_date=$(echo "$json_output" | jq -r '.date')
commit_date=$(echo "$json_output" | jq -r '.date' | cut -dT -f1)
# Fallback to current date if extraction fails
if [ -z "$commit_date" ] || [ "$commit_date" = "null" ]; then