summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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){