From 809e643ab7c89f5656cd0f328aa016f4b94b7649 Mon Sep 17 00:00:00 2001 From: low012 Date: Mon, 10 Jan 2011 17:47:23 +0000 Subject: [PATCH] *) Fixed bug where a number followed by characters was allowed as a valid value for the amount of memory which YaCy is allowed to consume. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7427 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- reconfigureYACY.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reconfigureYACY.sh b/reconfigureYACY.sh index 17531d767..7d478dce7 100755 --- a/reconfigureYACY.sh +++ b/reconfigureYACY.sh @@ -145,6 +145,11 @@ change_mem_settings() read INPUT case $INPUT in + *[^0-9]*) + echo + echo 'Please enter a number or just hit enter to abort.' + change_mem_settings + ;; [0-9]*) replace_parameter 'javastart_Xmx' "Xmx$INPUT"'m' replace_parameter 'javastart_Xms' "Xms$INPUT"'m' @@ -153,11 +158,6 @@ change_mem_settings() '') STATUS="$NOCHANGESTEXT" ;; - *) - echo - echo 'Please enter a number or just hit enter to abort.' - change_mem_settings - ;; esac }