https://gitlab.com/tezos/tezos
Raw File
Tip revision: 56e587a09ed6fc108b4605d8c96ae3b6e5bbb218 authored by François Thiré on 08 December 2023, 10:42:21 UTC
Test/Key_value_store: remove debug leftovers
Tip revision: 56e587a
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