mirror of
				https://ceregatti.org/git/daniel/dayzdockerserver.git
				synced 2025-11-04 07:13:34 +00:00 
			
		
		
		
	Add cfgenvironment.xml support. WIP.
This commit is contained in:
		
							parent
							
								
									e1a9f338b0
								
							
						
					
					
						commit
						e383c6cced
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# A generic script that retrieves XML files from mods, either upstream in remote endpoints, or
 | 
					# A generic script that retrieves XML files from mods, either upstream in remote endpoints, or
 | 
				
			||||||
# locally from the downloaded mod directory
 | 
					# locally from the downloaded mod directory, or from project files.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set -eE
 | 
					set -eE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,14 @@ ID=${1}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ! [ -f ${FILES}/mods/${ID}/xml.env ]
 | 
					if ! [ -f ${FILES}/mods/${ID}/xml.env ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
 | 
						echo "No xml.env exists for the ID ${ID}."
 | 
				
			||||||
	exit 0
 | 
						exit 0
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
source ${FILES}/mods/${ID}/xml.env
 | 
					source ${FILES}/mods/${ID}/xml.env
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Iterate over the file names we can handle
 | 
					# Iterate over the file names we can handle
 | 
				
			||||||
for var in CFGEVENTSPAWNS CFGSPAWNABLETYPES EVENTS TYPES
 | 
					for var in CFGENVIRONMENT CFGEVENTSPAWNS CFGSPAWNABLETYPES EVENTS TYPES
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
  DIR="${WORKSHOP_DIR}/${ID}"
 | 
					  DIR="${WORKSHOP_DIR}/${ID}"
 | 
				
			||||||
  OUT="${DIR}/${var,,}.xml"
 | 
					  OUT="${DIR}/${var,,}.xml"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue