From c09797873d7416cee34c4546b01ad0b10bda98eb Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 14 Dec 2011 18:05:49 +0100 Subject: [PATCH] Ignore commented lines in .vmoptions --- bin/nix/idea.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nix/idea.sh b/bin/nix/idea.sh index 5e56bac6d5d3..32360201fba4 100755 --- a/bin/nix/idea.sh +++ b/bin/nix/idea.sh @@ -124,7 +124,7 @@ fi # if VM options file exists - use it if [ -r "$VM_OPTIONS_FILE" ]; then - JVM_ARGS=`tr '\n' ' ' < "$VM_OPTIONS_FILE"` + JVM_ARGS=`cat "$VM_OPTIONS_FILE" | grep -ve "^#.*" | tr '\n' ' '` JVM_ARGS="$JVM_ARGS -Djb.vmOptionsFile=\"$VM_OPTIONS_FILE\"" # only extract properties (not VM options) from Info.plist INFO_PLIST_PARSER_OPTIONS=""