Mercurial > hg > lukkari
changeset 151:ca012374190c
Fix update script to work with dash/non-bash shells.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 25 Sep 2014 19:27:34 +0300 |
parents | 5c0eacb7d35d |
children | 4085ea7aa7a6 |
files | update.sh |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/update.sh Sat Sep 20 07:39:10 2014 +0300 +++ b/update.sh Thu Sep 25 19:27:34 2014 +0300 @@ -1,13 +1,13 @@ #!/bin/sh URLSUFFIX=".htm" -function createdir() +createdir() { test ! -d "$1" && mkdir -p "$1" && chmod 751 "$1" } -function fetch() +fetch() { URLPREFIX="$1" CLASSFILE="$2" @@ -22,7 +22,7 @@ } -function parse() +parse() { # Create cache directories, if they do not exist OLDCACHEDIR="${CACHEDIR}old/"