Skip to content

Commit

Permalink
Fix #635 on ynh_secure_remove
Browse files Browse the repository at this point in the history
  • Loading branch information
maniackcrudelis committed Feb 6, 2019
1 parent 169ae96 commit 060370e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/helpers.d/filesystem
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ ynh_secure_remove () {
/var/www \
/home/yunohost.app"

if [[ -n "$2" ]]
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
fi
if [ $# -ge 2 ]
then
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

if [[ "$forbidden_path" =~ "$file" \
# Match all paths or subpaths in $forbidden_path
Expand Down

0 comments on commit 060370e

Please sign in to comment.