You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run scripts on /storage/emulated/0 from the widget and as symlinks did not work I tried to "meta-script" in .shortcuts with starts my script in /storage/emulated/0.
Thereby I noticed ,if you run a script in .shortcuts through the termux-widget, it will always tell "file not found" when accessing other files.
so here are the steps to reproduce to make it clearer:
.shortcut/test.sh:
EDIT:
Also, you can't execute scripts directly from /storage/emulated/0. Call them with interpreter (e.g. bash /my/script.sh) - it will bypass shebang & exec permission issue and script will run.
I'm trying to run scripts on /storage/emulated/0 from the widget and as symlinks did not work I tried to "meta-script" in .shortcuts with starts my script in /storage/emulated/0.
Thereby I noticed ,if you run a script in .shortcuts through the termux-widget, it will always tell "file not found" when accessing other files.
so here are the steps to reproduce to make it clearer:
.shortcut/test.sh:
.shortcut/test2.sh
then run:
and then execute test.sh in termux-widget
error when executing the script: [path-to-test2.sh] not found
ls will show that the file exists
if you run the scripts from the command line it will work as well
The text was updated successfully, but these errors were encountered: