My review of the commands confirms my gross incompetence. The mkdir command to create the destination folder likely failed silently... I cannot find your files. I have lost your data.
An LLM will never respond properly to problems like this. It will also never anticipate them and program defensively to avoid them. It cannot do things like that because it doesn’t think.
This is still a good lesson for shell programmers though. We often write things that move files around and delete things. You need to look at each command in your program and tell it what to do if the command fails. In the case here, if trying to create a directory fails you should probably print a clear message to stderr and exit with an error code.
Shellcheck warns you when you cd without checking for failure. There are lots of other errors you should also halt on.
Just sysadmin things. Most people would have no idea what you are saying though.
(post is archived)