Fixed GitHub action problems when specifying a config

This commit is contained in:
Salvador E. Tropea 2022-03-25 12:37:24 -03:00
parent 024cba6af0
commit 5c34e8b1af
1 changed files with 2 additions and 9 deletions

View File

@ -184,19 +184,12 @@ function args_process {
} }
function run { function run {
CONFIG="$(echo "$CONFIG" | tr -d '[:space:]')"
if [ -d .git ]; then if [ -d .git ]; then
/usr/bin/kicad-git-filters.py /usr/bin/kicad-git-filters.py
fi fi
if [ -f $CONFIG ]; then echo $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS
echo $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS kibot $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS
kibot $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS
else
echo "config file '$CONFIG' not found!"
exit $EXIT_ERROR
fi
} }
function main { function main {