diff options
author | 2019-03-21 21:58:30 +0100 | |
---|---|---|
committer | 2019-03-21 21:58:30 +0100 | |
commit | d407fd36b2ebbc10801f30e5caea99fc68717338 (patch) | |
tree | a5a77b7c39bb629af12e9695e604363efbe0807c /gen_compile.sh | |
parent | Fix compilation of dmraid (diff) | |
download | genkernel-d407fd36b2ebbc10801f30e5caea99fc68717338.tar.gz genkernel-d407fd36b2ebbc10801f30e5caea99fc68717338.tar.bz2 genkernel-d407fd36b2ebbc10801f30e5caea99fc68717338.zip |
Show output of patch command only in loglevel >=2
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_compile.sh')
-rwxr-xr-x | gen_compile.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gen_compile.sh b/gen_compile.sh index 7c38859..6e0d107 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -212,6 +212,11 @@ apply_patches() { if [ -d "${patchdir}" ] then + local silent="-s " + if [[ "${LOGLEVEL}" -gt 1 ]]; then + silent= + fi + print_info 1 "$(getIndent 3)${util}: >> Applying patches..." for i in ${patchdir}/*{diff,patch} do @@ -220,7 +225,7 @@ apply_patches() { for j in `seq 0 5` do patch -p${j} --backup-if-mismatch -f < "${i}" --dry-run >/dev/null && \ - patch -p${j} --backup-if-mismatch -f < "${i}" + patch ${silent}-p${j} --backup-if-mismatch -f < "${i}" if [ $? = 0 ] then patch_success=1 |