aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jails/22_forge/files/git-shell-commands/describe
diff options
context:
space:
mode:
authorJan Sydänviita <jan@sydanviita.fi>2026-08-19 21:22:07 +0300
committerJan Sydänviita <jan@sydanviita.fi>2026-08-19 21:22:07 +0300
commitd11727b0f16239d0871ca89461e36c9431e910b2 (patch)
tree2edf0b62a1b909d43f777fe6d9a80ed4eac59593 /roles/jails/22_forge/files/git-shell-commands/describe
parent781a0a7d671758b2c34147c5dc1477d69ffba544 (diff)
Improvements to forge
Diffstat (limited to 'roles/jails/22_forge/files/git-shell-commands/describe')
-rw-r--r--roles/jails/22_forge/files/git-shell-commands/describe3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/jails/22_forge/files/git-shell-commands/describe b/roles/jails/22_forge/files/git-shell-commands/describe
index b5b0451..43f75db 100644
--- a/roles/jails/22_forge/files/git-shell-commands/describe
+++ b/roles/jails/22_forge/files/git-shell-commands/describe
@@ -1,6 +1,7 @@
#!/bin/sh
-if [ -z "$1" ] || [ -z "$2" ]; then
+if [ "$#" -ne 2 ]; then
echo "Usage: describe [REPO_NAME] [DESCRIPTION]"
+ echo "Note: quote the description if it contains spaces"
exit 1
fi
if [ ! -d "$1.git" ]; then