[fix] Error due to unwanted backslash ! (#541)

This commit is contained in:
ljf (zamentur) 2018-09-13 15:36:18 +02:00 committed by Alexandre Aubin
parent 3d60e2d34b
commit 8e574d2b5f

View file

@ -12,8 +12,8 @@ backup_dir="${1}/data/home"
# Backup user home
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then
if [ ! -e "/home/\$f/.nobackup" ]; then
ynh_backup "/home/\$f" "${backup_dir}/\$f" 1
if [ ! -e "/home/$f/.nobackup" ]; then
ynh_backup "/home/$f" "${backup_dir}/$f" 1
fi
fi
done