conscript icon indicating copy to clipboard operation
conscript copied to clipboard

files created in ~/bin, even if another file of the same name already exists

Open kevinwright opened this issue 14 years ago • 5 comments

A prompt would be nice, or at least rename any existing files as a backup!

kevinwright avatar Sep 10 '11 23:09 kevinwright

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.

n8han avatar Sep 11 '11 00:09 n8han

Guess what my case was :)

kevinwright avatar Sep 11 '11 00:09 kevinwright

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.

n8han avatar Sep 11 '11 00:09 n8han

I'd be happy for the existing file to be renamed, append .bak1, .bak2 etc to the name. Or some other scheme.

kevinwright avatar Sep 11 '11 00:09 kevinwright

Conscripted scripts are now created under $CONSCRIPT_BIN (default ~/.conscript/bin/). Do we still need backup feature?

eed3si9n avatar May 15 '16 18:05 eed3si9n