Skip to content

Commit 9b741c2

Browse files
committed
fix(builder): run 'mc ls' correctly, and suppress its output
1 parent 1701ad4 commit 9b741c2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

rootfs/etc/confd/templates/builder

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,10 @@ kubectl --namespace=$POD_NAMESPACE create -f /etc/${SLUG_NAME}.yaml
140140
#check for image creation or slug existence in S3EP
141141

142142
if [[ "$REMOTE_STORAGE" == "1" ]]; then
143-
$MC_PREFIX ls $PUSH_URL
144-
while [ "$?" == "1" ]
145-
do
146-
sleep 2
143+
LS_CMD="$MC_PREFIX ls $PUSH_URL"
144+
until $LS_CMD &> /dev/null; do
147145
echo "no file"
148-
$MC_PREFIX ls $PUSH_URL
146+
sleep 2
149147
done
150148
else
151149
while [ ! -f /apps/${SLUG_NAME}/slug.tgz ]

0 commit comments

Comments
 (0)