Skip to content

Commit b6c1d21

Browse files
committed
Added TRACE and QUIET variables; Grouped related statements
1 parent 1f7891e commit b6c1d21

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

commands/.settings

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
#!/bin/bash -e
22

3-
if [ "$XTRACE" = 1 ]; then
3+
set -o pipefail
4+
5+
TRACE="${TRACE:-0}"
6+
7+
if [ "${XTRACE:-$TRACE}" = 1 ]; then
48
set -x
59
fi
610

7-
set -o pipefail
8-
911
export CPPSM="${BASH_SOURCE%/*/*}"
1012

11-
if [ -z "$NUMBER_OF_PROCESSORS" ]; then
12-
NUMBER_OF_PROCESSORS=$(getconf _NPROCESSORS_ONLN || echo 2)
13-
fi
13+
QUIET="${QUIET:-1}"
1414

15-
if [ "$GIT_QUIET" = 0 ]; then
15+
if [ "${GIT_QUIET:-$QUIET}" = 0 ]; then
1616
GIT_QUIET=()
1717
else
1818
GIT_QUIET=(--quiet)
1919
fi
2020

21+
if [ -z "$NUMBER_OF_PROCESSORS" ]; then
22+
NUMBER_OF_PROCESSORS=$(getconf _NPROCESSORS_ONLN || echo 2)
23+
fi
24+
2125
N_PARALLEL_UPDATE="${N_PARALLEL_UPDATE:-$NUMBER_OF_PROCESSORS}"

0 commit comments

Comments
 (0)