https://gitlab.com/tezos/tezos
Raw File
Tip revision: ca4b2750ed9d81725d357b18c8abef46e74e2c7e authored by Arvid Jakobsson on 13 February 2024, 12:24:32 UTC
fixup! give default value to CI_NODE_INDEX
Tip revision: ca4b275
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