@@ -4,7 +4,7 @@ set -eo pipefail
4
4
# NOTE: if you make modifications to this script, please increment the version number.
5
5
# Major / minor: incremented for each stable release of Foundry.
6
6
# Patch: incremented for each change between stable releases.
7
- FOUNDRYUP_INSTALLER_VERSION=" 1.0.0 "
7
+ FOUNDRYUP_INSTALLER_VERSION=" 1.0.1 "
8
8
9
9
BASE_DIR=${XDG_CONFIG_HOME:- $HOME }
10
10
FOUNDRY_DIR=${FOUNDRY_DIR:- " $BASE_DIR /.foundry" }
@@ -151,7 +151,7 @@ main() {
151
151
BIN_ARCHIVE_URL=" ${RELEASE_URL} foundry_${FOUNDRYUP_VERSION} _${PLATFORM} _${ARCHITECTURE} .$EXT "
152
152
MAN_TARBALL_URL=" ${RELEASE_URL} foundry_man_${FOUNDRYUP_VERSION} .tar.gz"
153
153
154
- ensure mkdir -p $FOUNDRY_VERSIONS_DIR
154
+ ensure mkdir -p " $FOUNDRY_VERSIONS_DIR "
155
155
# Download and extract the binaries archive
156
156
say " downloading forge, cast, anvil, and chisel for $FOUNDRYUP_TAG version"
157
157
if [ " $PLATFORM " = " win32" ]; then
@@ -164,7 +164,7 @@ main() {
164
164
ensure download " $BIN_ARCHIVE_URL " " $tmp "
165
165
# Make sure it's a valid tar archive.
166
166
ensure tar tf $tmp 1> /dev/null
167
- ensure mkdir -p $FOUNDRY_VERSIONS_DIR /$FOUNDRYUP_TAG
167
+ ensure mkdir -p " $FOUNDRY_VERSIONS_DIR /$FOUNDRYUP_TAG "
168
168
ensure tar -C " $FOUNDRY_VERSIONS_DIR /$FOUNDRYUP_TAG " -xvf $tmp
169
169
rm -f " $tmp "
170
170
fi
@@ -224,7 +224,7 @@ main() {
224
224
# Build the repo.
225
225
ensure cargo build --bins " ${CARGO_BUILD_ARGS[@]} "
226
226
# Create foundry custom version directory.
227
- ensure mkdir -p $FOUNDRY_VERSIONS_DIR /$FOUNDRYUP_VERSION
227
+ ensure mkdir -p " $FOUNDRY_VERSIONS_DIR /$FOUNDRYUP_VERSION "
228
228
for bin in " ${BINS[@]} " ; do
229
229
for try_path in target/release/$bin target/release/$bin .exe; do
230
230
if [ -f " $try_path " ]; then
@@ -324,7 +324,7 @@ use() {
324
324
325
325
for bin in " ${BINS[@]} " ; do
326
326
bin_path=" $FOUNDRY_BIN_DIR /$bin "
327
- cp $FOUNDRY_VERSION_DIR /$bin $bin_path
327
+ cp " $FOUNDRY_VERSION_DIR /$bin " " $bin_path "
328
328
# Print usage msg
329
329
say " use - $( ensure " $bin_path " -V) "
330
330
0 commit comments