UNPKG

355 BPlain TextView Raw
1#!/bin/bash
2
3
4BINARY="$NODEJS"
5export PATH="$NODEJSPATH":$PATH
6#
7# Add --dry-run cli flag support so we can execute this hook without side affects
8# and see if it works in the current environment
9#
10if [[ $* == *--dry-run* ]]; then
11 if [[ -z "$BINARY" ]]; then
12 exit 1
13 fi
14else
15 "$BINARY" "$("$BINARY" -e "console.log(require.resolve('$TASK'))")"
16fi