Skip to content

The converter overwrites the original file under some circumstancesΒ #71

@rburkey2005

Description

@rburkey2005

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions