*) 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
This commit is contained in:
low012 2011-01-10 17:47:23 +00:00
parent 54e77e6255
commit 809e643ab7

View File

@ -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
}