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.
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
dos2unixon the script (I guess I could have used:%s/\r//ginstead) 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:I am running Arch Linux with bash 5.3.9. Attempting to run the install script with
su rootresulted in the same errors.