loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
464 stars 93 forks source link

Check for inotifywait failing #3

Closed dgschoenmaker closed 8 years ago

dgschoenmaker commented 8 years ago

I found I had to change the check for inotifywait in ngrest in order to get it working. It was aborting on the check ...

inotifywait -h >/dev/null 2>&1

which inotifywait >/dev/null 2>&1
#if [ $? -eq 127 ] # command not found
if [ $? -eq 1 ] # command not found
loentar commented 8 years ago

This should not help because set -eu will break script execution on the first error. which will return 1 and script will stop.

loentar commented 8 years ago

Fixed, please upgrade.