shared_testnet: support newlines in options

This commit is contained in:
Ștefan Talpalaru 2020-06-28 05:05:52 +02:00
parent 2cf0cbddf9
commit c78486240e
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
2 changed files with 4 additions and 2 deletions

View File

@ -63,8 +63,8 @@ while true; do
esac
done
# some old getopt (from util-linux 2.31.1) leaves a '--' option in $@
if [[ "$1" == "--" ]]; then
# docker-compose.yml inserts newlines in our options
if [[ "$(echo $1 | tr -d '[:space:]')" == "--" ]]; then
shift
fi

View File

@ -9,6 +9,8 @@ cd "$(dirname "${BASH_SOURCE[0]}")/../.."
[[ -z "$1" ]] && { echo "Usage: $(basename $0) YOUR_ETH1_PRIVATE_GOERLI_KEY"; exit 1; }
# TODO: make "witti" a parameter
echo -ne "About to delete \"build/data/shared_witti_0\".\nMake a backup, if you need to, then press Enter. >"
read TMP
make clean-witti