-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
If the original shell script does not have the file extension ".sh" but rather has no file extension, the batch file that's created does not have the extension ".bat", but rather has the same name as the original shell script, and overwrites it.
For example, if I have a bash script called "myscript" rather than "myscript.sh", then
npx bash-converter myscript
creates a new file called "myscript" that replaces the original.
I did not anticipate that result, and personally was only saved from completely losing my original file by accident. Others might not prove so lucky.
For what it's worth, this occurs in Linux Mint 21.3.
daniel-sc
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed