Skip to content

Commit 7d3261d

Browse files
committed
fix(foundryup): check if file exists before moving
1 parent 52ecd5c commit 7d3261d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

foundryup/foundryup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ EOF
206206
# Build the repo and install the binaries locally to the .foundry bin directory.
207207
ensure cargo build --bins --release
208208
for bin in "${BINS[@]}"; do
209-
mv -f "target/release/$bin" "target/release/$bin.exe" "$FOUNDRY_DIR"
209+
for try_path in target/release/$bin target/release/$bin.exe; do
210+
[ -f "$try_path" ] && ensure mv -f "$try_path" "$FOUNDRY_DIR"
211+
done
210212
done
211213

212214
# If help2man is installed, use it to add Foundry man pages.

0 commit comments

Comments
 (0)