Change working directory for JSDuck generate script

...so that it can be used without cd-ing.

Change-Id: I8e75b7348dfe0d3bd7185899bfeecbe63de11161
This commit is contained in:
Gergő Tisza 2014-01-22 00:11:18 +00:00
parent 34047e3ba3
commit ac8d1eec0c

View file

@ -1,6 +1,9 @@
#!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $SCRIPT_DIR > /dev/null
jsduck \
--config=$(pwd)/docs/jsduck-config.json \
--config=./jsduck-config.json \
--color --warnings-exit-nonzero \
&& echo 'JSDuck execution finished.'
popd > /dev/null