comparison update.sh @ 125:22872b46eee9

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 20 Apr 2014 14:28:07 +0300
parents 4547a239b0fd
children 6f7a2f9dcad4
comparison
equal deleted inserted replaced
124:4547a239b0fd 125:22872b46eee9
1 #!/bin/sh 1 #!/bin/sh
2 URLSUFFIX=".htm" 2 URLSUFFIX=".htm"
3 3
4 function createdir() 4 function createdir()
5 { 5 {
6 if test ! -d "$1"; then 6 test ! -d "$1" && mkdir -p "$1" && chmod 751 "$1"
7 mkdir -p "$1" && chmod 751 "$1"
8 fi
9 } 7 }
8
10 9
11 function fetch() 10 function fetch()
12 { 11 {
13 URLPREFIX="$1" 12 URLPREFIX="$1"
14 CLASSFILE="$2" 13 CLASSFILE="$2"