Sfoglia il codice sorgente

Capture -h and --help to show usage.

master
Chris McCormick 5 anni fa
parent
commit
550288534d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      gitnonymous-setup

+ 1
- 1
gitnonymous-setup Vedi File

@@ -20,7 +20,7 @@ sshfile="${confdir}/ssh/id_rsa"
20 20
 configfile="${confdir}/config"
21 21
 sshwrapperfile="${confdir}/git-ssh-wrap"
22 22
 
23
-if [ "$1" = "" ]
23
+if [ "$1" = "" -o '-h' = "$1" -o '--help' = "$1" ]
24 24
 then
25 25
   echo "Usage: $0 KEYNAME"
26 26
 else

Loading…
Annulla
Salva