You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
314 B
Bash
20 lines
314 B
Bash
17 years ago
|
#!/bin/sh
|
||
|
|
||
|
dir=$1;
|
||
|
|
||
|
dir_cmp=`echo $dir | sed 's./. /.g'`
|
||
|
if [ ! -d $dir ]
|
||
|
then
|
||
|
path=''
|
||
|
for cmp in $dir_cmp ; do
|
||
|
path="$path$cmp";
|
||
|
if [ ! -d $path ] ; then
|
||
|
mkdir $path; rc=$?;
|
||
|
if [ $rc != 0 ] ; then
|
||
|
echo "Error while making directory $path "
|
||
|
exit 1
|
||
|
fi
|
||
|
fi
|
||
|
done
|
||
|
fi
|
||
|
|