From 745aabcd22d2e98e441b019fd1cc36009c39d1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Fri, 6 Apr 2018 13:18:58 +0200 Subject: [PATCH] Script: allow to reinitialize a sandboxed client Running twice the `tezos-init-sandboxed-client.sh` should remove from the disk the previous client and initialize a new one. --- src/bin_client/tezos-init-sandboxed-client.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/bin_client/tezos-init-sandboxed-client.sh b/src/bin_client/tezos-init-sandboxed-client.sh index d02dbbea4..b4b178bf7 100755 --- a/src/bin_client/tezos-init-sandboxed-client.sh +++ b/src/bin_client/tezos-init-sandboxed-client.sh @@ -211,12 +211,6 @@ usage() { main () { - if [ "$is_tezos_sandboxed_init" = "1" ]; then - echo 'The client has already been initialized in this session.' >&2 - echo 'Start a new shell session if you wish to reinitialize a client.' >&2 - exit - fi - local bin_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")" if [ $(basename "$bin_dir") = "bin_client" ]; then local_client="${local_client:-$bin_dir/../../_build/default/src/bin_client/main_client.exe}" @@ -258,7 +252,6 @@ PATH="$client_dir/bin:\$PATH" ; export PATH ; alias tezos-activate-alpha="$client -block genesis activate protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK with fitness 1 and key dictator" ; alias tezos-client-reset="rm -rf \"$client_dir\"; unalias tezos-activate-alpha tezos-client-reset" ; alias tezos-autocomplete="if [ \$ZSH_NAME ] ; then autoload bashcompinit ; bashcompinit ; fi ; source \"$bin_dir/bash-completion.sh\"" ; -is_tezos_sandboxed_init=1 ; export is_tezos_sandboxed_init; trap tezos-client-reset EXIT ; EOF