Commit fa2335eb authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

phpstan-watch: amélioration des messages d'erreurs.

No related merge requests found
Pipeline #6926 failed with stages
in 16 seconds
Showing with 8 additions and 0 deletions
+8 -0
...@@ -8,6 +8,9 @@ fi ...@@ -8,6 +8,9 @@ fi
if ! INOTIFYWAIT="$(which inotifywait)"; then if ! INOTIFYWAIT="$(which inotifywait)"; then
echo "inotifywait introuvable !" >&2 echo "inotifywait introuvable !" >&2
if [[ -x /usr/lib/command-not-found ]]; then
/usr/lib/command-not-found inotifywait
fi
exit 1 exit 1
fi fi
...@@ -41,6 +44,11 @@ else ...@@ -41,6 +44,11 @@ else
fi fi
TARGET="${1:-$HERE/src}" TARGET="${1:-$HERE/src}"
if [[ ! -e "$TARGET" ]]; then
echo "$TARGET n'existe pas !" >&2
exit 1
fi
DIR="$(mktemp -d)" DIR="$(mktemp -d)"
FIFO="$DIR/fifo" FIFO="$DIR/fifo"
mkfifo "$FIFO" mkfifo "$FIFO"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment