summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkgit12
1 files changed, 12 insertions, 0 deletions
diff --git a/mkgit b/mkgit
index 69d3dbe..fa7ee6d 100755
--- a/mkgit
+++ b/mkgit
@@ -6,6 +6,18 @@ if [ -z "$1" ]; then
exit 1
fi
+case $1 in
+ rpms/*)
+ ;;
+ tools/*)
+ ;;
+ web/*)
+ ;;
+ *)
+ echo "Prefix not allowed (rpms/tools/web)"
+ exit 1
+esac
+
GIT=${1%/}
LOC=$(basename $GIT)