mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
[fix] No patches shouldn't warn
This commit is contained in:
parent
2cd6219769
commit
9a04d653e7
1 changed files with 6 additions and 4 deletions
|
@ -84,10 +84,12 @@ extract_sources() {
|
||||||
rm -f "$tarball"
|
rm -f "$tarball"
|
||||||
|
|
||||||
# apply patches
|
# apply patches
|
||||||
|
if [[ -d "${PKGDIR}/patches" ]]; then
|
||||||
(cd "$DESTDIR" \
|
(cd "$DESTDIR" \
|
||||||
&& for p in ${PKGDIR}/patches/*.patch; do \
|
&& for p in ${PKGDIR}/patches/*.patch; do \
|
||||||
exec_as "$AS_USER" patch -p1 < $p; done) \
|
exec_as "$AS_USER" patch -p1 < $p; done) \
|
||||||
|| ynh_die "Unable to apply patches"
|
|| ynh_die "Unable to apply patches"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Execute a command as another user
|
# Execute a command as another user
|
||||||
|
|
Loading…
Reference in a new issue