I've been trying to work out if it's possible to tangle a file if it's not existent on the system. I came across Can Org Babel conditionally tangle code blocks based on system-type? which gave me a starting point, however when I do the following #+begin_src shell :tangle (when (not (file-exists-p "~/bin/eto")) ~/bin/eto) I get Wrong type argument: stringp, nil when I try to tangle the src block.
What am I doing wrong?
~/bin/eto? Then you simply need#+begin_src shell :tangle ~/bin/eto, right?