Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Merge pull request #26 from Antiz96/typo
Browse files Browse the repository at this point in the history
Typo fixes
  • Loading branch information
Antiz96 authored Jun 24, 2023
2 parents 5ff04fe + 007d2a4 commit e5a8f36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/man/malias.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/script/malias.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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

Expand Down

0 comments on commit e5a8f36

Please sign in to comment.