Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Merge pull request #501 from iotaledger/fix/docker-workflow-fail
Browse files Browse the repository at this point in the history
Exit with a failure if we fail to create Docker network snapshot
  • Loading branch information
karimodm authored Nov 7, 2023
2 parents 1f4ed11 + d9d47ae commit 861754c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/docker-network/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash


# Create a function to join an array of strings by a given character
function join { local IFS="$1"; shift; echo "$*"; }

Expand Down Expand Up @@ -52,7 +51,11 @@ docker run --rm \
golang:1.21 go run -tags=rocksdb . --config docker --seed 7R1itJx5hVuo9w9hjg5cwKFmek4HMSoBDgJZN8hKGxih

# Move and set permissions for the .snapshot file
mv -f ../genesis-snapshot/*.snapshot .
if ! mv -f ../genesis-snapshot/*.snapshot .; then
echo "Failed to create or move snapshot file"
exit 1
fi

chmod o+r *.snapshot

echo "Run iota-core network"
Expand Down

0 comments on commit 861754c

Please sign in to comment.