https://gitlab.com/tezos/tezos
Raw File
Tip revision: d8f6f26f8ca53d21b8170a4dee1029d53ea0144c authored by Mathias Bourgoin on 22 March 2024, 09:01:15 UTC
Manifest: Remove alcotezt dependency from test/integration/gas
Tip revision: d8f6f26
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