https://gitlab.com/tezos/tezos
Raw File
Tip revision: ad7c7943579a37fb5a953f1332d0ce90e5e6e015 authored by Danny Willems on 14 March 2023, 15:34:26 UTC
Manifest: add missing transitive deps
Tip revision: ad7c794
restore-old-protocols.sh
#!/usr/bin/env bash

set -euo pipefail

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