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 if [ "$type" = "files" ]; then
mv "${full_file}_count" "$full_path" mv "${full_file}_count" "$full_path"
fi 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 done
# And clean the old directories # And clean the old directories
@ -108,7 +108,7 @@ then
then then
rm -r "$file" rm -r "$file"
fi 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 done
fi fi