From 1cabf5d265cd4c4139cd679cc212d6ead845081a Mon Sep 17 00:00:00 2001 From: ahpnils Date: Fri, 28 Aug 2015 09:54:29 +0200 Subject: try to manually sync with upstream --- phpmalwarefinder | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/phpmalwarefinder b/phpmalwarefinder index 9c4daa4..1fbe4cf 100755 --- a/phpmalwarefinder +++ b/phpmalwarefinder @@ -7,24 +7,12 @@ NICE_BIN=$(which nice) if [ ! -f "$YARA" ] then - YARA='./yara' + YARA='./yara' fi if [ ! -f "$CONFIG_PATH" ] then - CONFIG_PATH='./malwares.yara' -fi - -if [ -f "${IONICE_BIN}" ] -then - NICE=${IONICE_BIN} - NICE_OPTS="-c 3" -else - if [ -f "${NICE_BIN}" ] - then - NICE=${NICE_BIN} - NICE_OPTS="-n 20" - fi + CONFIG_PATH='./malwares.yara' fi if [ -f "${IONICE_BIN}" ] @@ -85,16 +73,10 @@ then exit 1 fi -if [ ! -e ${NICE} ] -then - echo "no nice programe available. PLease install ionice or nice." - exit 1 -fi - if [ -z $@ ] then - show_help - exit 1 + show_help + exit 1 fi if [ ! -e ${NICE} ] -- cgit v1.3