Add patch for missing ynh_abort_if_errors in change_url scripts
This commit is contained in:
parent
f6531db64e
commit
c94a3c0008
10
autopatches/patches/missing-seteu-in-change_url/patch.sh
Normal file
10
autopatches/patches/missing-seteu-in-change_url/patch.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
cd scripts/
|
||||||
|
|
||||||
|
if [ ! -e change_url ] || grep -q 'ynh_abort_if_errors' change_url
|
||||||
|
then
|
||||||
|
# The app doesn't has any change url script or already has ynh_abort_if_error
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed 's@\(source /usr/share/yunohost/helpers\)@\1\nynh_abort_if_errors@g' -i change_url
|
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
This is an ***automated*** patch to fix the lack of `ynh_abort_if_errors` in change_url script
|
@ -0,0 +1 @@
|
|||||||
|
Missing ynh_abort_if_errors in change_url scripts
|
Loading…
Reference in New Issue
Block a user