1 2 3 4 5 6 7 8 9
#!/bin/sh set -e if [ -z "$1" ] ; then echo "Need to supply a path to the repository to unhide" exit 1 fi if [ -e "$1/cgitrc" ]; then sed -i '/^hide=/d' "$1/cgitrc" fi