mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix #635 on ynh_secure_remove
This commit is contained in:
parent
169ae96f0a
commit
060370ef88
1 changed files with 4 additions and 4 deletions
|
@ -392,10 +392,10 @@ ynh_secure_remove () {
|
||||||
/var/www \
|
/var/www \
|
||||||
/home/yunohost.app"
|
/home/yunohost.app"
|
||||||
|
|
||||||
if [[ -n "$2" ]]
|
if [ $# -ge 2 ]
|
||||||
then
|
then
|
||||||
echo "/!\ Packager ! You provided a second argument to ynh_secure_remove but it will be ignored... Use this helper with one argument at time." >&2
|
echo "/!\ Packager ! You provided more than one argument to ynh_secure_remove but it will be ignored... Use this helper with one argument at time." >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$forbidden_path" =~ "$file" \
|
if [[ "$forbidden_path" =~ "$file" \
|
||||||
# Match all paths or subpaths in $forbidden_path
|
# Match all paths or subpaths in $forbidden_path
|
||||||
|
|
Loading…
Add table
Reference in a new issue