removed unintentional bashism
This commit is contained in:
parent
1e31497a15
commit
25cb64d2f2
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ new() {
|
||||||
for arg in $@; do
|
for arg in $@; do
|
||||||
if [ "${arg}" != "__MODULE__" ]; then
|
if [ "${arg}" != "__MODULE__" ]; then
|
||||||
path="${SRCDIR}/${HEADER_DIR}/${arg%.h}.h"
|
path="${SRCDIR}/${HEADER_DIR}/${arg%.h}.h"
|
||||||
clean_path="${path//.\//}"
|
clean_path="$(echo ${path} | sed 's/\.\///g')"
|
||||||
macro="$(basename ${clean_path} .h | tr '[a-z]' '[A-Z]')"
|
macro="$(basename ${clean_path} .h | tr '[a-z]' '[A-Z]')"
|
||||||
[ ! -d "$(dirname ${clean_path})" ] &&
|
[ ! -d "$(dirname ${clean_path})" ] &&
|
||||||
mkdir -p "$(dirname ${clean_path})"
|
mkdir -p "$(dirname ${clean_path})"
|
||||||
|
|
Loading…
Reference in a new issue