diff --git a/README.md b/README.md index a3e9c8b..35d94fc 100644 --- a/README.md +++ b/README.md @@ -106,8 +106,8 @@ Exit Codes: 0 OK 1 Invalid option 2 User didn't gave the confirmation to proceed - 3 An error occured when creating/restoring the backup of the .bashrc file - 4 An error occured when adding/removing the alias + 3 An error occurred when creating/restoring the backup of the .bashrc file + 4 An error occurred when adding/removing the alias ``` For more information, see the malias(1) man page diff --git a/doc/man/malias.1 b/doc/man/malias.1 index 3941f67..2be3bb6 100644 --- a/doc/man/malias.1 +++ b/doc/man/malias.1 @@ -54,11 +54,11 @@ User didn't gave the confirmation to proceed .TP .B 3 -An error occured when creating/restoring the backup of the .bashrc file +An error occurred when creating/restoring the backup of the .bashrc file .TP .B 4 -An error occured when adding/removing the alias +An error occurred when adding/removing the alias .SH USAGE .TP diff --git a/src/script/malias.sh b/src/script/malias.sh index dcf2c8a..3a62c81 100755 --- a/src/script/malias.sh +++ b/src/script/malias.sh @@ -44,7 +44,7 @@ backup_bashrc() { if cp -p ~/.bashrc ~/".bashrc-bck_${name}-${operation}-${alias_name}"; then echo -e "\nBackup of the .bashrc file created" else - echo -e >&2 "\nERROR: An error occured when creating the backup of the .bashrc file" + echo -e >&2 "\nERROR: An error occurred when creating the backup of the .bashrc file" exit 3 fi } @@ -69,10 +69,10 @@ check_bashrc_error() { else case "${operation}" in add) - echo -e >&2 "\nERROR: An error occured when adding the alias\nPlease verify that you typed the alias correctly\nAlso, be aware that the alias name cannot contain space(s). However, it can contain \"-\" (hyphen) or \"_\" (underscore)" + echo -e >&2 "\nERROR: An error occurred when adding the alias\nPlease verify that you typed the alias correctly\nAlso, be aware that the alias name cannot contain space(s). However, it can contain \"-\" (hyphen) or \"_\" (underscore)" ;; delete) - echo -e >&2 "\nERROR: An error occured when deleting the alias" + echo -e >&2 "\nERROR: An error occurred when deleting the alias" ;; esac