https://gitlab.com/tezos/tezos
Raw File
Tip revision: 690c096e51f6018d776b16ddbe8f54e962c5edb0 authored by Gabriel Moise on 11 October 2023, 09:18:10 UTC
WIP: Refactor + add reorganised blocks query
Tip revision: 690c096
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