diff options
| author | shaddai | 2016-01-04 16:58:23 +0100 |
|---|---|---|
| committer | shaddai | 2016-01-04 16:58:23 +0100 |
| commit | 9d0858ea4d31eaf670c44a338b7068bd836b03c5 (patch) | |
| tree | 9d0170737a2c612d7cbb4d3076d73048a52cf1a0 | |
| parent | 71a34f643b135fc8d0d1fad26029fdbdfefe0f64 (diff) | |
fix overwrite by previous commit
| -rwxr-xr-x | phpmalwarefinder | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index 20d3cee..186218a 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -50,12 +50,13 @@ Usage ${0##*/} [-cfhw] <file|folder> ... | |||
| 50 | -c Optional path to a configuration file | 50 | -c Optional path to a configuration file |
| 51 | -f Fast mode | 51 | -f Fast mode |
| 52 | -h Show this help message | 52 | -h Show this help message |
| 53 | -t Specify the number of threads to use (8 by default) | ||
| 53 | -v Verbose mode | 54 | -v Verbose mode |
| 54 | EOF | 55 | EOF |
| 55 | } | 56 | } |
| 56 | 57 | ||
| 57 | OPTIND=1 | 58 | OPTIND=1 |
| 58 | while getopts "c:fhv" opt; do | 59 | while getopts "c:fht:v" opt; do |
| 59 | case "$opt" in | 60 | case "$opt" in |
| 60 | h) | 61 | h) |
| 61 | show_help | 62 | show_help |
| @@ -67,6 +68,9 @@ while getopts "c:fhv" opt; do | |||
| 67 | c) | 68 | c) |
| 68 | CONFIG_PATH=${OPTARG} | 69 | CONFIG_PATH=${OPTARG} |
| 69 | ;; | 70 | ;; |
| 71 | t) | ||
| 72 | OPTS="${OPTS} --threads=${OPTARG}" | ||
| 73 | ;; | ||
| 70 | v) | 74 | v) |
| 71 | OPTS="${OPTS} -s" | 75 | OPTS="${OPTS} -s" |
| 72 | ;; | 76 | ;; |
