shared_testnet: support newlines in options
This commit is contained in:
parent
2cf0cbddf9
commit
c78486240e
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue