aboutsummaryrefslogtreecommitdiff
path: root/home/unhide.sh
diff options
context:
space:
mode:
Diffstat (limited to 'home/unhide.sh')
-rwxr-xr-xhome/unhide.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/home/unhide.sh b/home/unhide.sh
new file mode 100755
index 0000000..beab919
--- /dev/null
+++ b/home/unhide.sh
@@ -0,0 +1,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