1
0
Fork 0
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:
Alexandre Aubin 2020-11-09 15:59:03 +01:00 committed by GitHub
parent 045aaec61f
commit 067c44465f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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