From 73fa0429f0dada32a1935a307dbb39308bd21f54 Mon Sep 17 00:00:00 2001 From: Joey Frazee Date: Tue, 28 Nov 2017 10:26:11 -0600 Subject: [PATCH] NIFI-4640 Sub source w/ . in nifi.sh to be POSIX compliant This closes #2302 Signed-off-by: Aldrin Piri --- .../nifi-resources/src/main/resources/bin/nifi.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh index 35fdfa1849..9174810040 100755 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh @@ -83,9 +83,8 @@ detectOS() { fi # In addition to those, go around the linux space and query the widely # adopted /etc/os-release to detect linux variants - if [ -f /etc/os-release ] - then - source /etc/os-release + if [ -f /etc/os-release ]; then + . /etc/os-release fi }