Skip to content

Commit

Permalink
helpers.v2.1: Add ynh_in_ci_tests to check if the scripts are running…
Browse files Browse the repository at this point in the history
… in CI or not
  • Loading branch information
Salamandar committed Jun 28, 2024
1 parent f2696fd commit 7d2500f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions helpers/helpers.v1.d/sources
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d2500f

Please sign in to comment.