mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Error due to unwanted backslash ! (#541)
This commit is contained in:
parent
3d60e2d34b
commit
8e574d2b5f
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ backup_dir="${1}/data/home"
|
||||||
# Backup user home
|
# Backup user home
|
||||||
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
|
for f in $(find /home/* -type d -prune | awk -F/ '{print $NF}'); do
|
||||||
if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then
|
if [[ ! "$f" =~ ^yunohost|lost\+found ]]; then
|
||||||
if [ ! -e "/home/\$f/.nobackup" ]; then
|
if [ ! -e "/home/$f/.nobackup" ]; then
|
||||||
ynh_backup "/home/\$f" "${backup_dir}/\$f" 1
|
ynh_backup "/home/$f" "${backup_dir}/$f" 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue