1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jirafeau_ynh.git synced 2024-09-03 19:35:53 +02:00

remove sudo

This commit is contained in:
ericgaspar 2020-03-27 11:05:33 +01:00
parent 781f5fa244
commit 7d4d0c9d51

View file

@ -93,7 +93,7 @@ then
if [ "$type" = "files" ]; then
mv "${full_file}_count" "$full_path"
fi
done <<< "$(sudo find "$var_root/$type" -type f)" # List all files, without directories
done <<< "$(find "$var_root/$type" -type f)" # List all files, without directories
done
# And clean the old directories
@ -108,7 +108,7 @@ then
then
rm -r "$file"
fi
done <<< "$(sudo 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
fi