removed unintentional bashism

This commit is contained in:
Noah Swerhun 2021-12-30 15:34:29 -06:00
parent 1e31497a15
commit 25cb64d2f2

View file

@ -198,7 +198,7 @@ new() {
for arg in $@; do
if [ "${arg}" != "__MODULE__" ]; then
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]')"
[ ! -d "$(dirname ${clean_path})" ] &&
mkdir -p "$(dirname ${clean_path})"