YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 23 forks source link

fix: last listed app not being backed up #38

Closed ashemsay closed 4 years ago

ashemsay commented 4 years ago

I noticed that with the current check the last app of the list given during installation was not being backed up.

Indeed, if the list looks like "app1,app2,app3", the check [[ "$apps" = *"$app,"* ]] will match app1 and app2 but not app3.

What I suggest fixes this issue, we split the list and check each element independently.