From 5c923940e4e80fd4c4cc220436350b17cd4bc353 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 30 May 2013 21:15:43 -0400 Subject: [PATCH] Corrected root url set when in raw mode --- repo2html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo2html b/repo2html index 1cad669..26643a4 100755 --- a/repo2html +++ b/repo2html @@ -126,7 +126,8 @@ done shift $((OPTIND-1)) -test $do_raw || url_root="${1?Missing root URL (for RSS)}" +url_root="${1}" +test "$do_raw" -o "$url_root" || { echo 'Missing root URL' >&2; exit 64; } # default title to repository name (as taken from the directory) title="${title:-$( cwarn title $( basename "$path_out" ) )}"