mirror of
				https://ceregatti.org/git/daniel/dayzdockerserver.git
				synced 2025-11-04 07:13:34 +00:00 
			
		
		
		
	Fix formatting of long mod names.
This commit is contained in:
		
							parent
							
								
									4e9a93ba53
								
							
						
					
					
						commit
						f1aa8d27ea
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -110,7 +110,7 @@ list(){
 | 
				
			||||||
		then
 | 
							then
 | 
				
			||||||
			C="${green}"
 | 
								C="${green}"
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
		printf "${C}%.3d  %s %.30s     %s https://steamcommunity.com/sharedfiles/filedetails/?id=%s  %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE}
 | 
							printf "${C}%.3d  %s %.36s %s https://steamcommunity.com/sharedfiles/filedetails/?id=%s  %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE}
 | 
				
			||||||
		X=$((X+1))
 | 
							X=$((X+1))
 | 
				
			||||||
	done
 | 
						done
 | 
				
			||||||
	echo
 | 
						echo
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -538,7 +538,7 @@ activelist(){
 | 
				
			||||||
		ID=$(readlink ${link} | awk -F/ '{print $NF}')
 | 
							ID=$(readlink ${link} | awk -F/ '{print $NF}')
 | 
				
			||||||
		MODNAME=$(get_mod_name ${ID})
 | 
							MODNAME=$(get_mod_name ${ID})
 | 
				
			||||||
		SIZE=$(du -sh "${WORKSHOP_DIR}/${ID}" | awk '{print $1}')
 | 
							SIZE=$(du -sh "${WORKSHOP_DIR}/${ID}" | awk '{print $1}')
 | 
				
			||||||
		printf "${C}%.3d  %s %.30s    %s  https://steamcommunity.com/sharedfiles/filedetails/?id=%s  %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE}
 | 
							printf "${C}%.3d  %s %.36s %s https://steamcommunity.com/sharedfiles/filedetails/?id=%s  %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE}
 | 
				
			||||||
		X=$((X+1))
 | 
							X=$((X+1))
 | 
				
			||||||
	done
 | 
						done
 | 
				
			||||||
	if [[ ${have} = "no" ]]
 | 
						if [[ ${have} = "no" ]]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue