conscript
conscript copied to clipboard
files created in ~/bin, even if another file of the same name already exists
A prompt would be nice, or at least rename any existing files as a backup!
That's true. Mostly it does it for "easy" upgrades, but the case where it's replacing a completely different file instead of an older version of the same script is pretty nasty.
Guess what my case was :)
These cases could be differentiated by looking for .conscript/sbt-launch.jar in the file. If that's not found, refuse to replace and let the user sort it out.
I'd be happy for the existing file to be renamed, append .bak1, .bak2 etc to the name. Or some other scheme.
Conscripted scripts are now created under $CONSCRIPT_BIN (default ~/.conscript/bin/). Do we still need backup feature?