mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +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>
		
			
				
	
	
		
			21 lines
		
	
	
		
			424 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			424 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
FILE=$1
 | 
						|
TODAY=$(date -u +"%Y-%m-%d")
 | 
						|
 | 
						|
if [[ -z "$FILE" ]]; then
 | 
						|
    echo "No file specified. Exiting."
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
if [[ ! -f "$FILE" ]]; then
 | 
						|
    echo "File $FILE not found. Exiting."
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
DATE_IN_JSON=$(jq -r '.date_created' "$FILE" 2>/dev/null || echo "")
 | 
						|
 | 
						|
if [[ "$DATE_IN_JSON" != "$TODAY" ]]; then
 | 
						|
    jq --arg date "$TODAY" '.date_created = $date' "$FILE" >tmp.json && mv tmp.json "$FILE"
 | 
						|
fi
 |