mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-27 00:10:18 +00:00

* Initial Call, Switch from curl -s to curl -fsSL and wget to curl -fssL * more switches * switch vms * more curls * More curls * more * more * more changes * more * prepare ipv6 calls * change frontend to ipv6 * Formatting * Fromatting * Update gomft.sh * Update gomft-install.sh * Update ersatztv.sh * Update build.func --------- Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
24 lines
683 B
Bash
24 lines
683 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Verzeichnis, das die JSON-Dateien enthält
|
|
json_dir="./json/*.json"
|
|
|
|
current_date=$(date +"%Y-%m-%d")
|
|
|
|
for json_file in $json_dir; do
|
|
if [[ -f "$json_file" ]]; then
|
|
current_json_date=$(jq -r '.date_created' "$json_file")
|
|
|
|
if [[ "$current_json_date" != "$current_date" ]]; then
|
|
echo "Updating $json_file with date $current_date"
|
|
jq --arg date "$current_date" '.date_created = $date' "$json_file" >temp.json && mv temp.json "$json_file"
|
|
|
|
git add "$json_file"
|
|
git commit -m "Update date_created to $current_date in $json_file"
|
|
else
|
|
echo "Date in $json_file is already up to date."
|
|
fi
|
|
fi
|
|
done
|
|
git push origin HEAD
|