Skip to content

Commit d43f086

Browse files
committed
tweaks to recipe to not care about caps for stages
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
1 parent a7515b3 commit d43f086

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

singularity/build/scripts/secure-build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ else
1313
fi
1414

1515
# Get all stages
16-
CONTENDER_STAGES=$(cat $SINGULARITY_BUILDDEF | grep ^[[:blank:]]*Stage:)
16+
CONTENDER_STAGES=$(cat $SINGULARITY_BUILDDEF | grep -i ^[[:blank:]]*Stage:)
1717

1818
# Case 1: We have stages
1919
for stage in $CONTENDER_STAGES; do
20-
if [ "$stage" != "Stage:" ]; then
20+
lowerstage=$(echo "$stage" | tr '[:upper:]' '[:lower:]')
21+
if [ "$lowerstage" != "stage:" ]; then
2122
stages="$stage $stages"
2223
fi
2324
done

0 commit comments

Comments
 (0)