瀏覽代碼

Capture -h and --help to show usage.

master
Chris McCormick 5 年之前
父節點
當前提交
550288534d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      gitnonymous-setup

+ 1
- 1
gitnonymous-setup 查看文件

@@ -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…
取消
儲存