#!/bin/sh set -e -x PATHS="`IFS=' ' paste -s -d:`" if [ -n "$PATHS" ] && node --eval "process.exit(require('ignore')().add(process.argv[1].split(',')).filter(process.argv[2].split(':')).length ? 0 : 1)" "$1" "$PATHS"; then if [ -n "$2" ]; then touch "$2"; fi else if [ -n "$3" ]; then touch "$3"; fi fi