aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--numnodes.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/numnodes.sh b/numnodes.sh
index 29858b1..296d77e 100644
--- a/numnodes.sh
+++ b/numnodes.sh
@@ -8,13 +8,13 @@ case $num in
''|*[!0-9]*) echo "bad number: >>$num<<" ;;
*)
if test "$num" -ge 1; then
-
+
num="$(expr $num - 4)"
cd "$(dirname "$0")"
-
+
sed 's/<NUM_NODES>/'"$num"'/g' numnodes.template > _site/numnodes.html
-
- fi
+
+ fi
;;
esac
# vim: syntax=bash ts=4 sw=4 sts=4 sr noet