Skip to content

Commit 03bd770

Browse files
committed
Better output
1 parent 8375b6f commit 03bd770

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

dev/conda/conda-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ if (( USE_R )) {
124124

125125
# Run conda install!
126126
CONDA_FLAGS=( --yes --quiet $SOLVER )
127+
# For set -x:
128+
PS4="%1N"
127129
set -x
128130
if (( INSTALL_DEPS )) conda install $CONDA_FLAGS -c conda-forge $LIST
129131
conda install $CONDA_FLAGS $PKG

dev/jenkins/anaconda.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,15 @@ downloads()
226226
# Download and install both Minicondas:
227227
mkdir -pv $WORKSPACE/downloads
228228
cd $WORKSPACE/downloads
229-
if [[ ! -f $MINICONDA ]] \
230-
wget --no-verbose https://repo.anaconda.com/miniconda/$MINICONDA
229+
if [[ ! -f $MINICONDA ]] {
230+
log "download: $MINICONDA"
231+
wget --no-verbose https://repo.anaconda.com/miniconda/$MINICONDA
232+
}
231233
foreach LABEL ( build install ) \
232-
if [[ ! -d $WORKSPACE/sfw/Miniconda-$LABEL ]] \
234+
if [[ ! -d $WORKSPACE/sfw/Miniconda-$LABEL ]] {
235+
log "install: $WORKSPACE/sfw/Miniconda-$LABEL"
233236
bash $MINICONDA -b -p $WORKSPACE/sfw/Miniconda-$LABEL
237+
}
234238
end
235239
)
236240
log "DOWNLOADS OK."
@@ -317,13 +321,15 @@ print
317321
task $SWIFT_T/dev/conda/conda-install.sh $USE_R $PKG
318322

319323
log "TRY SWIFT/T..."
320-
(
321-
set -x
324+
() {
322325
PATH=$WORKSPACE/sfw/Miniconda-install/bin:$PATH
326+
# For set -x:
327+
PS4="%1N"
328+
set -x
323329
which swift-t
324330
swift-t -v
325331
swift-t -E 'trace(42);'
326-
)
332+
}
327333
print
328334
log "SWIFT/T OK."
329335
log "PKG=$PKG"

0 commit comments

Comments
 (0)