forked from mirrors/qmk_userspace
		
	Follow symlinks when listing keyboards. (#11250)
This commit is contained in:
		
					parent
					
						
							
								63362a9c5e
							
						
					
				
			
			
				commit
				
					
						13bbeefc5a
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# This allows us to exclude keyboards by including a .noci file.
 | 
					# This allows us to exclude keyboards by including a .noci file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
find keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do
 | 
					find -L keyboards -type f -name rules.mk | grep -v keymaps | while read keyboard; do
 | 
				
			||||||
	keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!')
 | 
						keyboard=$(echo $keyboard | sed 's!keyboards/\(.*\)/rules.mk!\1!')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	[ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard"
 | 
						[ "$1" = "noci" -a -e "keyboards/${keyboard}/.noci" ] || echo "$keyboard"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue