Quote stuff properly

This commit is contained in:
Kamil Śliwak
2021-02-01 17:14:38 +01:00
parent 566d49a1d1
commit 27754d3e3d
27 changed files with 124 additions and 124 deletions
+7 -7
View File
@@ -29,17 +29,17 @@
# (c) 2016 solidity contributors.
#------------------------------------------------------------------------------
ZIP_SUFFIX=$1
ZIP_TEMP_DIR=$(pwd)/build/zip/
ZIP_SUFFIX="$1"
ZIP_TEMP_DIR="$(pwd)/build/zip/"
# There is an implicit assumption here that we HAVE to run from root directory.
REPO_ROOT=$(pwd)
mkdir -p $ZIP_TEMP_DIR
mkdir -p "$ZIP_TEMP_DIR"
# Copy all the solidity executables into a temporary directory prior to ZIP creation
cp $REPO_ROOT/build/solc/solc $ZIP_TEMP_DIR
cp "$REPO_ROOT/build/solc/solc" "$ZIP_TEMP_DIR"
# For macOS, we run a fix-up script which alters all of the symbolic links within
# the executables and dynamic libraries such that the ZIP becomes self-contained, by
@@ -48,9 +48,9 @@ cp $REPO_ROOT/build/solc/solc $ZIP_TEMP_DIR
# being for kernel-level dylibs.
if [[ "$OSTYPE" == "darwin"* ]]; then
python3 $REPO_ROOT/scripts/fix_homebrew_paths_in_standalone_zip.py $ZIP_TEMP_DIR
python3 "$REPO_ROOT/scripts/fix_homebrew_paths_in_standalone_zip.py" "$ZIP_TEMP_DIR"
fi
# And ZIP it all up, with a filename suffix passed in on the command-line.
mkdir -p $REPO_ROOT/upload
zip -j $REPO_ROOT/upload/solidity-$ZIP_SUFFIX.zip $ZIP_TEMP_DIR/*
mkdir -p "$REPO_ROOT/upload"
zip -j "$REPO_ROOT/upload/solidity-$ZIP_SUFFIX.zip" "$ZIP_TEMP_DIR/"*