https://gitlab.com/tezos/tezos
Raw File
Tip revision: 60e2bcc429ba84e2152a97a98ff887a48eba2f2b authored by Gabriel Moise on 15 March 2024, 11:04:50 UTC
Proto: Add timeout argument to client signing commands (paris)
Tip revision: 60e2bcc
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