Use repo root in update-citeproc.sh
This commit is contained in:
parent
7ae79bbb98
commit
257a2280c1
3 changed files with 4 additions and 8 deletions
1
scripts/.gitignore
vendored
1
scripts/.gitignore
vendored
|
@ -1,2 +1 @@
|
||||||
config.sh
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
export ZOTEROSRC="../zotero"
|
|
|
@ -1,9 +1,7 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
ZOTEROSRC="../zotero"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
if [ -e "./config.sh" ]; then
|
ROOT_DIR="$(dirname "$SCRIPT_DIR")"
|
||||||
. ./config.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
tag=master
|
tag=master
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
|
@ -12,10 +10,10 @@ fi
|
||||||
echo Downloading tag $tag
|
echo Downloading tag $tag
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
outFile="$ZOTEROSRC/chrome/content/zotero/xpcom/citeproc.js"
|
outFile="$ROOT_DIR/chrome/content/zotero/xpcom/citeproc.js"
|
||||||
|
|
||||||
if [ ! -e "$outFile" ]; then
|
if [ ! -e "$outFile" ]; then
|
||||||
>&2 echo "$outFile not found. Looking for Zotero source in $(readlink -f $ZOTEROSRC)"
|
>&2 echo "$outFile not found"
|
||||||
exit 78 # EX_CONFIG: configuration error (from sysexits.h)
|
exit 78 # EX_CONFIG: configuration error (from sysexits.h)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue