From: Tomas Pospisek Date: Sat, 24 Jan 2015 00:17:33 +0000 (+0100) Subject: name parameters to make code easier to understand X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=055961ce60da0c22b1273a0e9bc1cbe4adcc9215;ds=sidebyside name parameters to make code easier to understand --- diff --git a/dohtml b/dohtml index 07e5bb3..cbef6c0 100755 --- a/dohtml +++ b/dohtml @@ -98,6 +98,8 @@ EOF } makemainpage() { + local title="$1" # Title of page + local time="$2" # Date header "$title" "$time" @@ -186,6 +188,6 @@ makepage "" "$title" "$htmldir/other/stable.html" "$time" "-b" makepage "" "$title" "$htmldir/other/testing.html" "$time" "-t" makepage "" "$title" "$htmldir/other/pseudo.html" "$time" "pseudo" -makemainpage > $htmldir/index.html.new +makemainpage "$title" "$time" > $htmldir/index.html.new mv -f $htmldir/index.html.new $htmldir/index.html