Gotta explicitly return 0, otherwise the return code of last command is used, which in that case is 1 ...

This commit is contained in:
Alexandre Aubin 2021-01-11 14:15:45 +01:00
parent adaf539e98
commit c56883d027

View file

@ -550,7 +550,7 @@ ynh_pin_repo () {
fi
# Sury pinning is managed by the regenconf in the core...
[[ "$name" != "extra_php_version" ]] || return
[[ "$name" != "extra_php_version" ]] || return 0
mkdir --parents "/etc/apt/preferences.d"
echo "Package: $package