You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
314 B
20 lines
314 B
8 years ago
|
#!/bin/bash
|
||
|
|
||
|
cd "$(dirname $0)"
|
||
|
|
||
|
if [[ -z "$(which docker)" ]]; then
|
||
|
echo "Please install Docker from https://www.docker.com"
|
||
|
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
docker="docker run --rm -v "$(pwd):/opt/wappalyzer" -it wappalyzer/dev"
|
||
|
|
||
|
if [[ ! -d "node_modules" ]]; then
|
||
|
$docker ./bin/run links
|
||
|
|
||
|
$docker npm i
|
||
|
fi
|
||
|
|
||
|
$docker ./bin/run $@
|