shithub: riscv

Download patch

ref: b5a6a26fd877af43d4c159037d3b671ef6e9fd91
parent: 7c3ea4360b64579ce63d85337fdefdbba565f312
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Oct 18 10:55:56 EDT 2012

hpost: better handling of optional -u flag

--- a/rc/bin/hpost
+++ b/rc/bin/hpost
@@ -23,13 +23,12 @@
 	shift
 }
 
-# tired of typing -u
-if(~ $1 http://* https://*){
+if(~ $#url 0){
 	url=$1
 	shift
 }
 
-if(~ $#url 0)
+if(~ $url '')
 	usage
 
 while(! ~ $#* 0){
--