I'm not expert in bash scripting, thus some help is needed to address some issues with the executable script of that project.
I have defined some scripts in composer.json
where I invoke the bin/fault-manager
bin
https://github.com/omegad-biz/fault-manager/blob/7ba0ab5ab1ffa7070771ace9630075b3776f75c1/composer.json#L41-L60
Bellow is the terminal output when running directly from bin/fault-manager
and when running via composer
$ bin/fault-manager
fault-manager [COMMAND]
Description of this script.
Options:
-t, --tests Run tests without coverage
-T, --tests-coverage Run tests with coverage
this through the interactive option
-c, --clear Clears _compile/ folder
-C, --clear-tests Clears tests/_compile/
-X, --clear-all Clear both _compile/ and
tests/_compile/ folders
-f, --force Skip all user interaction
-i, --interactive Prompt for values
-q, --quiet Quiet (no output)
-v, --verbose Output more
-h, --help Display this help and exit
--version Output version information and exit
$ bin/fault-manager -t
and $ bin/fault-manager -T
run as expected.
When I run $ bin/fault-manager -c
or $ bin/fault-manager -C
or $ bin/fault-manager -X
if _compile/
and/or tests/_compile/
folders are empty then I receive:
find: _compiled/*: No such file or directory
find: tests/_compiled/*: No such file or directory
How can I mute that? I tried to put &> /dev/null
after lines 103
and 106
but it doesn't help...
https://github.com/omegad-biz/fault-manager/blob/7ba0ab5ab1ffa7070771ace9630075b3776f75c1/bin/fault-manager#L99-L113
The other issue I have is when I run composer
scripts for instance, composer compiled-clear
is equivalent to bin/fault-manager -c
, but when I run with composer I'm receiving error exit 1.
$ touch _compiled/SomeDommyFile.php
$ composer compiled-clear
> bin/fault-manager -c
Script bin/fault-manager -c handling the compiled-clear event returned with error code 1
The compiled folder is now empty, so the script did its job, but composer returns with error code 1
and I'm not sure why...
another issue is when I run composer test
, it simply not working at all... :(
$ composer test
> bin/fault-manager -C
find: tests/_compiled/*: No such file or directory
Script bin/fault-manager -C handling the compiled-clear-tests event returned with error code 1
If anyone could provide some support it would be much appreciated!
Thank you in advance!