Skip to content

Commit

Permalink
Fix prepare-devnet script on MacOS (#1723)
Browse files Browse the repository at this point in the history
Since commit 2a36ef7, the
`prepare-devnet` script has been broken on MacOS. It seems that while
the Linux implementation of `chmod` does not care about the order of
flags and the mode(s), MacOS requires that flags come before the mode.
Now, the `prepare-devnet` script should work on both macOS and Linux.

---

<!-- Consider each and tick it off one way or the other -->
- [x] CHANGELOG updated or not needed
- [x] Documentation updated or not needed
- [x] Haddocks updated or not needed
- [x] No new TODOs introduced or explained herafter
  • Loading branch information
ffakenz authored Nov 18, 2024
2 parents ea6f0da + 0b013af commit da02873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/prepare-devnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ TARGETDIR=${TARGETDIR:-devnet}
[ -d "$TARGETDIR" ] && { echo "Cleaning up directory $TARGETDIR" ; rm -rf $TARGETDIR ; }

cp -af "$BASEDIR/hydra-cluster/config/devnet" "$TARGETDIR"
chmod u+w -R "$TARGETDIR"
chmod -R u+w "$TARGETDIR"
cp -af "$BASEDIR/hydra-cluster/config/credentials" "$TARGETDIR"
chmod u+w -R "$TARGETDIR"
chmod -R u+w "$TARGETDIR"

echo '{"Producers": []}' > "$TARGETDIR/topology.json"
sed -i.bak "s/\"startTime\": [0-9]*/\"startTime\": $(date +%s)/" "$TARGETDIR/genesis-byron.json" && \
Expand Down

0 comments on commit da02873

Please sign in to comment.