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 ]
|
||||
|
@ -11,12 +14,12 @@ export PGDATABASE=matabas
|
|||
export PGUSER=matabasare
|
||||
|
||||
log() {
|
||||
printf "\e[1m\e[38;5;87m==>\e[0m\e[1m %s%s\e[0m\n" "$1" "${2:-.}"
|
||||
printf "\e[1m\e[38;5;87m==>\e[0m\e[1m %s%s\e[0m\n" "$1" "${2:-.}"
|
||||
}
|
||||
|
||||
# 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