Skip to content

Commit 53afd1b

Browse files
committed
fix: prelude.
1 parent 17d1a50 commit 53afd1b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

scripts/monza/faucet

-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#!/bin/bash -e
22

3-
# Setup a trap to clean up the temporary directory on EXIT
4-
cleanup() {
5-
echo "Cleaning up temporary directory."
6-
rm -rf "$temp_dir"
7-
}
8-
trap cleanup EXIT
9-
103
# Copy the directory from the Nix store to a temporary location
114
temp_dir=$MOVEMENT_BASE_STORAGE_PATH/monza-aptos
12-
cp -R "$MONZA_APTOS_PATH" "$temp_dir"
13-
chmod -R 755 $temp_dir
145

156
# Change to the temporary directory
167
cd "$temp_dir"

scripts/preludes/monza-full-node/prelude

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ cargo build -p monza-full-node
1010

1111
# build aptos
1212
WORKING_DIR=$(pwd)
13-
cd ./.movement/monza-aptos
13+
temp_dir=$MOVEMENT_BASE_STORAGE_PATH/monza-aptos
14+
cp -R "$MONZA_APTOS_PATH" "$temp_dir"
15+
chmod -R 755 $temp_dir
16+
cd $MOVEMENT_BASE_STORAGE_PATH/monza-aptos
1417
cargo build -p aptos-faucet-service
1518
cd $WORKING_DIR
1619

0 commit comments

Comments
 (0)