diff --git a/dobroho_vechora.bash b/dobroho_vechora.bash index 3181cdf..c6329ea 100755 --- a/dobroho_vechora.bash +++ b/dobroho_vechora.bash @@ -40,9 +40,7 @@ get_message() { } case "${mode}" in - intr) - ;& - interactive) + intr | interactive) ;; send) open_socket @@ -51,9 +49,7 @@ case "${mode}" in close_socket exit ;; - rec) - ;& - receive) + rec | receive) length="$(get_message 1)" open_socket echo -n 2 >&3