summaryrefslogtreecommitdiffstats
path: root/source3/script/installdirs.sh
blob: 9557b86d3bc401fdcf39b7a4112430d210f17568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

while ( test -n "$1" ); do
	if [ ! -d $1 ]; then
		mkdir -p $1
	fi

	if [ ! -d $1 ]; then
		echo Failed to make directory $1
		exit 1
	fi

	shift;
done