From b5a6a26fd877af43d4c159037d3b671ef6e9fd91 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 18 Oct 2012 14:55:56 +0200 Subject: hpost: better handling of optional -u flag --- rc/bin/hpost | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rc/bin/hpost b/rc/bin/hpost index 4885cb40b..adf54c75d 100755 --- a/rc/bin/hpost +++ b/rc/bin/hpost @@ -23,13 +23,12 @@ while(~ $1 -*){ shift } -# tired of typing -u -if(~ $1 http://* https://*){ +if(~ $#url 0){ url=$1 shift } -if(~ $#url 0) +if(~ $url '') usage while(! ~ $#* 0){ -- cgit v1.2.3