Skip to content

Install script fails due to errors on lines 25, 28, 32, and 132 #2

@WoolieWool

Description

@WoolieWool

EDIT: Upon further investigation, the script fails because it is cloned from the github repo in Windows format, hence the line feed codes in the error messages! Running dos2unix on the script (I guess I could have used :%s/\r//g instead) made it run correctly. I have attached a corrected copy of the script.

saferm_install.sh

I attempted to install this utility using the provided script with sudo bash saferm_install.sh. The installation failed with the following errors:

saferm_install.sh: line 25: $'\r': command not found
saferm_install.sh: line 28: $'\r': command not found
 Version 1.0ll
saferm_install.sh: line 38: $'\r': command not found
saferm_install.sh: line 122: syntax error: unexpected end of file from `if' command on line 115

I am running Arch Linux with bash 5.3.9. Attempting to run the install script with su root resulted in the same errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions