summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-22 13:09:06 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-22 13:09:06 +0100
commitf7f2ee5ed9f395fec5f0ac0dd0ff18ac93ef6d95 (patch)
treea291523e68ceb4259287c850b77a579b12f4937d
parent11280e705a477b00b29431c7442c2a45d1e0ba58 (diff)
use perl style function argument passing
-rwxr-xr-xphotoalbum.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/photoalbum.sh b/photoalbum.sh
index 983e314..39e149e 100755
--- a/photoalbum.sh
+++ b/photoalbum.sh
@@ -12,9 +12,9 @@ function createdirs () {
}
function template () {
- local -r template=${1}
- local -r html=$2
- local destdir=$3
+ local -r template=${1} ; shift
+ local -r html=${1} ; shift
+ local destdir=${1} ; shift
if [ -z "${destdir}" ]; then
destdir=html/
@@ -45,7 +45,7 @@ function scale () {
}
function generate () {
- local num=${1}
+ local num=${1} ; shift
local name=page-${num}
local -i i=0