From f7f2ee5ed9f395fec5f0ac0dd0ff18ac93ef6d95 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sun, 22 Dec 2013 13:09:06 +0100 Subject: use perl style function argument passing --- photoalbum.sh | 8 ++++---- 1 file 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 -- cgit v1.2.3