From 8975fbd4b89aaf84c99f23268c43809a620501b5 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Thu, 25 Mar 2021 14:27:59 -0400 Subject: [PATCH] Use GRADLE_OPTS in environment variable Commit 5af1f14 results in the GRADLE_OPTS environment variable being ignored. Fixes https://github.com/gdubw/gng/issues/19 --- bin/gng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gng b/bin/gng index 0ab67cb..c5c4373 100755 --- a/bin/gng +++ b/bin/gng @@ -122,7 +122,7 @@ gradle() { ( # Restore shell options eval "${SAVED_OPTS}" - GRADLE_OPTS=$(cfg_get GRADLE_OPTS) + GRADLE_OPTS="$(cfg_get GRADLE_OPTS) ${GRADLE_OPTS:-}" export GRADLE_OPTS exec "${gradle}" "$@" )