We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ecd5c commit 89cfc58Copy full SHA for 89cfc58
foundryup/foundryup
@@ -206,7 +206,12 @@ EOF
206
# Build the repo and install the binaries locally to the .foundry bin directory.
207
ensure cargo build --bins --release
208
for bin in "${BINS[@]}"; do
209
- mv -f "target/release/$bin" "target/release/$bin.exe" "$FOUNDRY_DIR"
+ for try_path in target/release/$bin target/release/$bin.exe; do
210
+ if [ -f "$try_path" ]; then
211
+ [ -e "$FOUNDRY_BIN_DIR/$bin" ] && warn "overwriting existing $bin in $FOUNDRY_BIN_DIR"
212
+ mv -f "$try_path" "$FOUNDRY_BIN_DIR"
213
+ fi
214
+ done
215
done
216
217
# If help2man is installed, use it to add Foundry man pages.
0 commit comments