Skip to content

Commit 784d5a8

Browse files
committed
Move set -eu
1 parent 74ef7c6 commit 784d5a8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

dev/github-actions/edit-settings.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -eu
2+
# We 'set -eu' after 'conda activate'
33

44
# SETTINGS SH
55
# Edit swift-t-settings.sh via settings.sed
@@ -12,16 +12,18 @@ log()
1212
echo "edit-settings.sh:" ${*}
1313
}
1414

15+
ACTIVATE=( source $CONDA/bin/activate base )
16+
log ${ACTIVATE[@]}
17+
${ACTIVATE[@]}
18+
19+
set -eu
20+
1521
cd dev
1622
SETTINGS_SH=build/swift-t-settings.sh
1723
SETTINGS_ORIG=build/swift-t-settings.orig
1824

1925
cp -v $SETTINGS_SH $SETTINGS_ORIG
2026

21-
ACTIVATE=( source $CONDA/bin/activate base )
22-
log ${ACTIVATE[@]}
23-
${ACTIVATE[@]}
24-
2527
log $SETTINGS_SH ...
2628
sed -i -f github-actions/settings.sed $SETTINGS_SH
2729

0 commit comments

Comments
 (0)