#!/bin/bash set -e root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.." cd "${root_dir}" debug= if test x"$1" = x'debug'; then debug=--d fi node-gyp ${debug} rebuild