Skip to content

Commit 4f9b695

Browse files
committed
fix(shell): check storage ready
1 parent 7e77ed0 commit 4f9b695

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rootfs/usr/local/bin/get_object

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ mc alias set storage \
99
GET_PATH=/tmp/app.tgz
1010

1111
mc ping storage -x
12-
12+
if ! mc admin info storage > /dev/null 2>&1; then
13+
sleep 9s
14+
else
15+
mc ready storage
16+
fi
1317
mc cp storage/"${DRYCC_STORAGE_BUCKET}/${TAR_PATH}" "${GET_PATH}"

0 commit comments

Comments
 (0)