NIFI-4640 Sub source w/ . in nifi.sh to be POSIX compliant

This closes #2302

Signed-off-by: Aldrin Piri <aldrin@apache.org>
This commit is contained in:
Joey Frazee 2017-11-28 10:26:11 -06:00 committed by Aldrin Piri
parent cec2764140
commit 73fa0429f0
No known key found for this signature in database
GPG Key ID: 531AEBAA4CFE5D00
1 changed files with 2 additions and 3 deletions

View File

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