Hello, I have a problem with Shell Script, with the "tail -1" function.
The resulting variable is the filename followed by "permission denied".
I checked the permissions and turned everything on.
I noticed that miui, however, allows access only to multimedia files, I had proof of this by changing the extension of the .CSV file to .JPG.
With the file in .jpg extension the "tail -1" function works perfectly.
Is there a way to allow macrodroid to interact with .csv files?
The phone I use is a note 10 pro, miui global 13.0.16