From 38b26e6bbb22cc7dd8fae8076279311596005bd5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 15 Aug 2019 21:57:11 +0300 Subject: [PATCH] Refactor: Use `$#` to check parameters --- git-open | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5