1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00

fix: removed -b option in yunohost app list command

This commit is contained in:
Lionel Coupouchetty-Ramouchetty 2020-06-19 14:36:25 +02:00
parent 4f9f137b6b
commit 46c547c4fb

View file

@ -39,7 +39,7 @@ fi
# Backup all apps independently # Backup all apps independently
apps=$(yunohost app setting {{ app }} apps) apps=$(yunohost app setting {{ app }} apps)
for app in $(yunohost app list --installed -b | grep id: | cut -d: -f2); do for app in $(ls /etc/yunohost/apps/*/scripts/backup | cut -d / -f 5); do
backup_app=false backup_app=false
for selected_app in $(echo $apps | tr "," " ");do for selected_app in $(echo $apps | tr "," " ");do
if [[ "$selected_app" == "$app" ]] || [ "$apps" = "all" ]; then if [[ "$selected_app" == "$app" ]] || [ "$apps" = "all" ]; then