fix git not being in build
This commit is contained in:
parent
29039f1c20
commit
8d349e0727
|
@ -1,4 +1,7 @@
|
|||
cd "$(git rev-parse --show-toplevel)"
|
||||
set +e
|
||||
ROOT="$(git rev-parse --show-toplevel)"
|
||||
[ $? -ne 0 ] && ROOT=./
|
||||
cd "$ROOT"
|
||||
|
||||
# Check for lock
|
||||
[ -f matabas-db/dev-lock ]
|
||||
|
@ -16,7 +19,7 @@ log() {
|
|||
|
||||
# Only trapped if owner
|
||||
exitHook() {
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
cd "$ROOT"
|
||||
log "Stoppar brevekorren"
|
||||
pg_ctl stop --pgdata=./matabas-db
|
||||
rm -f matabas-db/dev-lock
|
||||
|
@ -50,14 +53,14 @@ setupDb() {
|
|||
|
||||
P="$PWD"
|
||||
clean() {
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
cd "$ROOT"
|
||||
log "Rensar byggnad"
|
||||
rm -rf artifacts
|
||||
cd - >/dev/null
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
cd "$ROOT"
|
||||
( source "buildScripts/build.sh" )
|
||||
RES=$?
|
||||
cd - >/dev/null
|
||||
|
|
Loading…
Reference in New Issue
Block a user