Robert Huff wrote: > This is probably staring me in the face: > > if [ ! -d "foo"]
Missing space ^ here.
ie:
if [ ! -d "foo" ]
then
mkdir foo
fi
or perhaps more succinctly:
[ -d "foo" ] || mkdir "foo"
or best of all, maybe just:
mkdir -p "foo"
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature
