diff options
Diffstat (limited to 'httpup/httpup')
-rw-r--r-- | httpup/httpup | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/httpup/httpup b/httpup/httpup index 5c8db84..cdf15bc 100644 --- a/httpup/httpup +++ b/httpup/httpup @@ -4,24 +4,24 @@ # if [ $# -ne 1 ]; then - echo "usage: $0 <file>" >&2 - exit 1 + echo "usage: $0 <file>" >&2 + exit 1 fi . $1 if [ -z "$ROOT_DIR" ]; then - echo "ROOT_DIR not set in '$1'" >&2 + echo "\$ROOT_DIR not set in '$1'" >&2 exit 2 fi if [ -z "$URL" ]; then - echo "URL not set in '$1'" >&2 + echo "\$URL not set in '$1'" >&2 exit 2 fi for REPO in $URL; do - PORT=`echo $REPO | sed -n '/#.*$/s|^.*#||p'` - httpup sync $REPO $ROOT_DIR/$PORT + PORT=`echo $REPO | sed -n '/#.*$/s|^.*#||p'` + httpup sync $REPO $ROOT_DIR/$PORT done # End of file. |