diff options
| author | Julien Voisin | 2015-03-24 11:49:50 +0100 |
|---|---|---|
| committer | Julien Voisin | 2015-03-24 11:49:50 +0100 |
| commit | 9e6f1ced23176a5b4b424fa58ba58b04e975263f (patch) | |
| tree | d6fab0ab652c8e0127b254044742c7617ce3992f /phpmalwarefinder | |
| parent | d3e3e2e8cd0e79ad388c55650d6ffb459c4f1182 (diff) | |
Add packaging stuff dor debian!
Diffstat (limited to 'phpmalwarefinder')
| -rwxr-xr-x | phpmalwarefinder | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/phpmalwarefinder b/phpmalwarefinder index 66cdb92..80cf7f0 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder | |||
| @@ -5,7 +5,7 @@ CONFIG_PATH='/etc/phpmalwarefinder/malwares.yara' | |||
| 5 | 5 | ||
| 6 | show_help() { | 6 | show_help() { |
| 7 | cat << EOF | 7 | cat << EOF |
| 8 | Usage ${0##*/} [-dhw] | 8 | Usage ${0##*/} [-cfhw] |
| 9 | -c Optional path to a configuration file | 9 | -c Optional path to a configuration file |
| 10 | -f Fast mode | 10 | -f Fast mode |
| 11 | -h Show this help message | 11 | -h Show this help message |
| @@ -49,6 +49,12 @@ then | |||
| 49 | exit 1 | 49 | exit 1 |
| 50 | fi | 50 | fi |
| 51 | 51 | ||
| 52 | if [ -z $@ ] | ||
| 53 | then | ||
| 54 | show_help | ||
| 55 | exit 1 | ||
| 56 | fi | ||
| 57 | |||
| 52 | OPTS="${OPTS} -r ${CONFIG_PATH}" | 58 | OPTS="${OPTS} -r ${CONFIG_PATH}" |
| 53 | 59 | ||
| 54 | $YARA $OPTS $@ \ No newline at end of file | 60 | $YARA $OPTS $@ |
