mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers.v2.1: Add ynh_in_ci_tests to check if the scripts are running in CI or not
This commit is contained in:
parent
f2696fddab
commit
7d2500f7f3
1 changed files with 5 additions and 2 deletions
|
@ -267,8 +267,11 @@ ynh_setup_source() {
|
|||
for patchfile in "$patches_folder/"*.patch; do
|
||||
echo "$patchfile"
|
||||
if ! patch --strip=1 < "$patchfile"; then
|
||||
ynh_print_warn --message="Warn your packagers /!\\ patch $patchfile failed to apply"
|
||||
fi
|
||||
if ynh_in_ci_tests; then
|
||||
ynh_die --message"Patch $patchfile failed to apply!"
|
||||
else
|
||||
ynh_print_warn --message="Warn your packagers /!\\ patch $patchfile failed to apply"
|
||||
fi fi
|
||||
done
|
||||
popd
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue