commit 5adcc98367fa42787a770404df57a8dd4d61f854
parent cd697e419ba240e22f29870f7e9c26503e8f7d15
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Fri, 30 Oct 2020 22:44:25 +0100

Change usage format

Diffstat:
Mcategory | 2+-
Mdescription | 2+-
Minit | 2+-
Mmake-private | 2+-
Mmake-public | 2+-
Mowner | 2+-
Murl | 2+-
7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/category b/category @@ -2,7 +2,7 @@ # Check number of params [ $# -ne 1 ] && [ $# -ne 2 ] && \ - echo "Usage: category <project.git> <category>" && exit 1 + echo "Usage: category project[.git] [category]" && exit 1 # Set the project name, adding .git if necessary p=$(echo "$1" | sed 's/\.git$\|$/.git/i') diff --git a/description b/description @@ -1,7 +1,7 @@ #!/bin/sh # Check number of params -[ $# -ne 2 ] && echo "Usage: description <project.git> <description>" && exit 1 +[ $# -ne 2 ] && echo "Usage: description project[.git] description" && exit 1 # Set the project name, adding .git if necessary p=$(echo "$1" | sed 's/\.git$\|$/.git/i') diff --git a/init b/init @@ -1,7 +1,7 @@ #!/bin/sh # Check number of params -[ $# -ne 1 ] && echo "Usage: init <project.git>" && exit 1 +[ $# -ne 1 ] && echo "Usage: init project[.git]" && exit 1 # Set the project name, adding .git if necessary p=$(echo "$1" | sed 's/\.git$\|$/.git/i') diff --git a/make-private b/make-private @@ -5,7 +5,7 @@ reposdir="/srv/git" webdir="/srv/git/html" # Check number of params -[ $# -ne 1 ] && echo "Usage: make-private <project.git>" && exit 1 +[ $# -ne 1 ] && echo "Usage: make-private project[.git]" && exit 1 # Set the project name, adding .git if necessary dir="$(echo "$1" | sed 's/\.git$\|$/.git/i')" diff --git a/make-public b/make-public @@ -6,7 +6,7 @@ webdir="/srv/git/html" defaultdir="/usr/local/share/doc/stagit" # Check number of params -[ $# -ne 1 ] && echo "Usage: make-public <project.git>" && exit 1 +[ $# -ne 1 ] && echo "Usage: make-public project[.git]" && exit 1 # Set the project name, adding .git if necessary dir=$(echo "$1" | sed 's/\.git$\|$/.git/i') diff --git a/owner b/owner @@ -1,7 +1,7 @@ #!/bin/sh # Check number of params -[ $# -ne 2 ] && echo "Usage: owner <project.git> <owner>" && exit 1 +[ $# -ne 2 ] && echo "Usage: owner project[.git] owner" && exit 1 # Set the project name, adding .git if necessary p=$(echo "$1" | sed 's/\.git$\|$/.git/i') diff --git a/url b/url @@ -1,7 +1,7 @@ #!/bin/sh # Check number of params -[ $# -ne 2 ] && echo "Usage: url <project.git> <url>" && exit 1 +[ $# -ne 2 ] && echo "Usage: url project[.git] url" && exit 1 # Set the project name, adding .git if necessary p=$(echo "$1" | sed 's/\.git$\|$/.git/i')