Code Formatting
This commit is contained in:
parent
769fc3bcd9
commit
9eaaf8e154
|
@ -83,12 +83,12 @@ _git_is_dirty() {
|
||||||
read -r -a INPUT_FILE_PATTERN_EXPANDED <<< "$INPUT_FILE_PATTERN";
|
read -r -a INPUT_FILE_PATTERN_EXPANDED <<< "$INPUT_FILE_PATTERN";
|
||||||
|
|
||||||
# capture stderr
|
# capture stderr
|
||||||
gitStatusMessage="$((git status -s $INPUT_STATUS_OPTIONS -- ${INPUT_FILE_PATTERN_EXPANDED:+${INPUT_FILE_PATTERN_EXPANDED[@]}} >/dev/null ) 2>&1)"
|
gitStatusMessage="$((git status -s $INPUT_STATUS_OPTIONS -- ${INPUT_FILE_PATTERN_EXPANDED:+${INPUT_FILE_PATTERN_EXPANDED[@]}} >/dev/null ) 2>&1)";
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
gitStatus="$(git status -s $INPUT_STATUS_OPTIONS -- ${INPUT_FILE_PATTERN_EXPANDED:+${INPUT_FILE_PATTERN_EXPANDED[@]}})"
|
gitStatus="$(git status -s $INPUT_STATUS_OPTIONS -- ${INPUT_FILE_PATTERN_EXPANDED:+${INPUT_FILE_PATTERN_EXPANDED[@]}})";
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
_log "error" "git-status failed with:<$gitStatusMessage>";
|
_log "error" "git-status failed with:<$gitStatusMessage>";
|
||||||
exit 1
|
exit 1;
|
||||||
fi
|
fi
|
||||||
[ -n "$gitStatus" ]
|
[ -n "$gitStatus" ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue