forked from mirrors/qmk_userspace
		
	Initial attempt to fix docker creating files as root
This commit is contained in:
		
					parent
					
						
							
								dabd73b769
							
						
					
				
			
			
				commit
				
					
						f9c0936cea
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
# if docker is installed - call make within the qmk docker image
 | 
					# if docker is installed - call make within the qmk docker image
 | 
				
			||||||
if command -v docker >/dev/null; then
 | 
					if command -v docker >/dev/null; then
 | 
				
			||||||
  function make() {
 | 
					  function make() {
 | 
				
			||||||
    docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware qmkfm/qmk_firmware make "$@"
 | 
					    docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware --user $(id -u):$(id -g) qmkfm/qmk_firmware make "$@"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,7 +22,7 @@ fi
 | 
				
			||||||
# if docker is installed - call make within the qmk docker image
 | 
					# if docker is installed - call make within the qmk docker image
 | 
				
			||||||
if command -v docker >/dev/null; then
 | 
					if command -v docker >/dev/null; then
 | 
				
			||||||
  function make() {
 | 
					  function make() {
 | 
				
			||||||
    docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware qmkfm/qmk_firmware make "$@"
 | 
					    docker run --rm -e MAKEFLAGS="$MAKEFLAGS" -w /qmk_firmware/ -v "$PWD":/qmk_firmware --user $(id -u):$(id -g) qmkfm/qmk_firmware make "$@"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue