#!/bin/sh set -eu usage() { echo "Usage: $0 " echo "Restores the protocols stored in ." echo "This reverses the effect of 'scripts/remove-old-protocols.sh '" 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" protocols mv "$protocol" protocols done