#!/bin/bash cd "$(dirname $0)" if [[ -z "$(which docker)" ]]; then echo "Please install Docker from https://www.docker.com" exit 1 fi cmd="docker run --rm -v "$(pwd):/opt/wappalyzer" -it wappalyzer/dev" $cmd sh -c "\ yarn install i; \ cd src/drivers/webextension; \ yarn install i; \ cd ../npm; \ yarn install; \ cd ../puppeteer; \ yarn install" $cmd sh -c "cat patches/*.patch | patch -p0" $cmd ./bin/run links $cmd ./bin/run $@