From: Oleg Broytman Date: Thu, 15 Aug 2019 18:57:11 +0000 (+0300) Subject: Refactor: Use `$#` to check parameters X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=38b26e6bbb22cc7dd8fae8076279311596005bd5;p=git-scripts.git Refactor: Use `$#` to check parameters --- diff --git a/git-open b/git-open index da3561e..743707c 100755 --- a/git-open +++ b/git-open @@ -1,6 +1,6 @@ #! /bin/sh -if [ -z "$1" -o -n "$2" ]; then +if [ $# -ne 1 ]; then echo "Usage: git open url_key" >&2 exit 1 else