summaryrefslogtreecommitdiff
path: root/rc/bin
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-10-18 14:55:56 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-10-18 14:55:56 +0200
commitb5a6a26fd877af43d4c159037d3b671ef6e9fd91 (patch)
treefbf07b79047f35fbaae78dc2e0b1283c9f9fd985 /rc/bin
parent7c3ea4360b64579ce63d85337fdefdbba565f312 (diff)
hpost: better handling of optional -u flag
Diffstat (limited to 'rc/bin')
-rwxr-xr-xrc/bin/hpost5
1 files 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){