mirror of
https://github.com/YunoHost-Apps/jirafeau_ynh.git
synced 2024-09-03 19:35:53 +02:00
rm -r -> ynh_secure_remove (#74)
This commit is contained in:
parent
045aaec61f
commit
067c44465f
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ then
|
||||||
# Delete the directory if it's only one character long
|
# Delete the directory if it's only one character long
|
||||||
if [ ${#dirname} -eq 1 ]
|
if [ ${#dirname} -eq 1 ]
|
||||||
then
|
then
|
||||||
rm -r "$file"
|
ynh_secure_remove "$file"
|
||||||
fi
|
fi
|
||||||
done <<< "$(find "$var_root/$type" -maxdepth 1 -mindepth 1 -type d)" # List all first level directories
|
done <<< "$(find "$var_root/$type" -maxdepth 1 -mindepth 1 -type d)" # List all first level directories
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue