*) 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
pull/1/head
low012 14 years ago
parent 54e77e6255
commit 809e643ab7

@ -145,6 +145,11 @@ change_mem_settings()
read INPUT read INPUT
case $INPUT in case $INPUT in
*[^0-9]*)
echo
echo 'Please enter a number or just hit enter to abort.'
change_mem_settings
;;
[0-9]*) [0-9]*)
replace_parameter 'javastart_Xmx' "Xmx$INPUT"'m' replace_parameter 'javastart_Xmx' "Xmx$INPUT"'m'
replace_parameter 'javastart_Xms' "Xms$INPUT"'m' replace_parameter 'javastart_Xms' "Xms$INPUT"'m'
@ -153,11 +158,6 @@ change_mem_settings()
'') '')
STATUS="$NOCHANGESTEXT" STATUS="$NOCHANGESTEXT"
;; ;;
*)
echo
echo 'Please enter a number or just hit enter to abort.'
change_mem_settings
;;
esac esac
} }

Loading…
Cancel
Save