Unverified Commit 5b370227 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

gn: shellcheck setup hook

parent 544b981c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
# shellcheck shell=bash

gnConfigurePhase() {
    runHook preConfigure

@@ -7,11 +9,12 @@ gnConfigurePhase() {
    echoCmd 'gn flags' "${flagsArray[@]}"

    gn gen out/Release --args="${flagsArray[*]}"
    # shellcheck disable=SC2164
    cd out/Release/

    runHook postConfigure
}

if [ -z "${dontUseGnConfigure-}" -a -z "${configurePhase-}" ]; then
if [ -z "${dontUseGnConfigure-}" ] && [ -z "${configurePhase-}" ]; then
    configurePhase=gnConfigurePhase
fi