Skip to content

Instantly share code, notes, and snippets.

@siddhadev
siddhadev / gist:5814802
Last active November 9, 2021 17:20
Bash script for fixing subversion's "Working copy text base is corrupt" error
#!/bin/bash
set -e
usage(){
echo "Error $errcode $errorcode at line ${BASH_LINENO[0]} while executing: $BASH_COMMAND"
exit $errorcode
}
trap usage ERR