[PATCH] Bug fix: Correct case pattern in add
Export this patch
---
emailbook | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emailbook b/emailbook
index 9d46348..c2bbb0d 100755
--- a/emailbook
+++ b/emailbook
@@ -48,7 +48,7 @@ addentry() {
add() {
checkfilename
case $# in
- 1,2) addentry "$@" ;;
+ 1|2) addentry "$@" ;;
*) echo "Expected one or two arguments after -a!"; exit 1 ;;
esac
}
Oops! Thank you for the fix!
--
2.45.0