Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

touch evals/script.js to evaluate it again #72

Open
iwconfig opened this issue Dec 2, 2021 · 0 comments
Open

touch evals/script.js to evaluate it again #72

iwconfig opened this issue Dec 2, 2021 · 0 comments

Comments

@iwconfig
Copy link

iwconfig commented Dec 2, 2021

I would like to be able to run a script multiple times without having to replace the file with the same code or adding something to it every time. Using touch to instead update the filestamp would be very convenient. However, doesn't work:

$ echo 'console.log(`\u2665 hello ${document.querySelector(".author").textContent.trim()} \u2665`)' > tabs/last-focused/evals/test.js
$ touch tabs/last-focused/evals/test.js
touch: setting times of 'tabs/last-focused/evals/test.js': Function not implemented
$ stat tabs/by-id/1788/evals/test.js
  File: tabs/by-id/1788/evals/test.js
  Size: 93        	Blocks: 0          IO Block: 4096   regular file
Device: 51h/81d	Inode: 9905        Links: 1
Access: (0666/-rw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1970-01-01 01:00:00.000000000 +0100
Modify: 1970-01-01 01:00:00.000000000 +0100
Change: 1970-01-01 01:00:00.000000000 +0100
 Birth: -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant