Revision 1d137876c9aac9522bc503f00575b9d35a2c93b8 authored by Eugen Zalinescu on 03 April 2024, 15:33:57 UTC, committed by Eugen Zalinescu on 03 April 2024, 15:33:57 UTC
1 parent b0b45af
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...