Skip to content

Commit 59efd33

Browse files
authored
Merge pull request #11 from peter-evans/check-mirror-target
Check mirror target is set
2 parents 8e6e58a + 6ae702a commit 59efd33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: entrypoint.sh

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:=""}
77
MIRROR_SOURCE=${MIRROR_SOURCE:="."}
88
AWS_REGION=${AWS_REGION:=""}
99

10+
# Check mirror target is set
11+
if [ -z "$MIRROR_TARGET" ]; then
12+
echo "MIRROR_TARGET is not set"
13+
exit 1
14+
fi
15+
1016
# Set mc configuration
1117
if [ -z "$AWS_SESSION_TOKEN" ]; then
1218
mc alias set "$STORAGE_SERVICE_ALIAS" "$STORAGE_SERVICE_URL" "$ACCESS_KEY_ID" "$SECRET_ACCESS_KEY"

0 commit comments

Comments
 (0)