Create src if it doesn't already exist
This commit is contained in:
parent
2299d6abd6
commit
7d3ea5865b
1 changed files with 5 additions and 0 deletions
|
|
@ -73,6 +73,11 @@ do_parameter_subst() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -e "src" ]
|
||||||
|
then
|
||||||
|
do_cmd mkdir src || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e "src/${NAME}" ]
|
if [ -e "src/${NAME}" ]
|
||||||
then
|
then
|
||||||
print_failure "Module 'src/${NAME}' already exists"
|
print_failure "Module 'src/${NAME}' already exists"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue