https://gitlab.com/tezos/tezos
Raw File
Tip revision: 57a17ec2e47c5d5a9d5d852c03b878ed75be3e8d authored by Thomas Letan on 29 February 2024, 15:03:23 UTC
EVM Node: Support streaming upgrade events
Tip revision: 57a17ec
restore-old-protocols.sh
#!/bin/sh

set -eu

usage() {
  echo "Usage: $0 <protocol-trashbin>"
  echo "Restores the protocols stored in <protocol-trashbin>."
  echo "This reverses the effect of 'scripts/remove-old-protocols.sh <protocol-trashbin>'"
  exit 1
}

trash_bin=""
if [ -n "${1:-}" ] && [ "${1:-}" != "--help" ]; then
  trash_bin=$1
else
  usage
fi

for protocol in "$trash_bin"/*; do
  echo mv "$protocol" src
  mv "$protocol" src
done
back to top