14 lines
146 B
Bash
Executable file
14 lines
146 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if ( cd $1 ) 2>/dev/null
|
|
then
|
|
:
|
|
elif mkdir $1 2>/dev/null
|
|
then
|
|
:
|
|
else
|
|
echo $0: could not create directory $1 1>&2
|
|
exit 1
|
|
fi
|
|
exit 0
|