Normally, creating the target $1 yourself is bad; create $3 instead. But if $1 is a directory, we'll allow it. That way 'redo subdir' can call subdir.do, and subdir.do can both create the directory *and* run a bunch of sub-.do files on it.
2 lines
33 B
Text
2 lines
33 B
Text
[ -e "$1" ] && rmdir $1
|
|
mkdir $1
|