diff options
author | Remi Collet <remi@remirepo.net> | 2025-02-04 15:45:05 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-02-04 15:45:05 +0100 |
commit | a31fe4d67390d4874513514bc26486fa681c130f (patch) | |
tree | 44ef0c3c366a1cca9cdb1e7018079415f786f433 | |
parent | 11f66bb8f77cc530e95b2d9c5a612d0053fab65b (diff) |
mkgit: check first dir
-rwxr-xr-x | mkgit | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) |