forked from Bananymous/banan-os
				
			ports: Apply only patches ending in .patch
This commit is contained in:
		
							parent
							
								
									9b18bda9c8
								
							
						
					
					
						commit
						9f0c2fb6e2
					
				|  | @ -155,7 +155,7 @@ if [ "$VERSION" = "git" ]; then | ||||||
| 			pushd "$build_dir" >/dev/null | 			pushd "$build_dir" >/dev/null | ||||||
| 			git checkout "$COMMIT" || exit 1 | 			git checkout "$COMMIT" || exit 1 | ||||||
| 			if [ -d ../patches ]; then | 			if [ -d ../patches ]; then | ||||||
| 				for patch in ../patches/*; do | 				for patch in ../patches/*.patch ; do | ||||||
| 					git apply "$patch" || exit 1 | 					git apply "$patch" || exit 1 | ||||||
| 				done | 				done | ||||||
| 			fi | 			fi | ||||||
|  | @ -194,7 +194,7 @@ else | ||||||
| 			mv "$TAR_CONTENT" "$build_dir" || exit 1 | 			mv "$TAR_CONTENT" "$build_dir" || exit 1 | ||||||
| 
 | 
 | ||||||
| 			if [ -d patches ]; then | 			if [ -d patches ]; then | ||||||
| 				for patch in ./patches/*; do | 				for patch in ./patches/*.patch ; do | ||||||
| 					patch -ruN -p1 -d "$build_dir" < "$patch" || exit 1 | 					patch -ruN -p1 -d "$build_dir" < "$patch" || exit 1 | ||||||
| 				done | 				done | ||||||
| 			fi | 			fi | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue