mirror of https://github.com/apache/nifi.git
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:
parent
cec2764140
commit
73fa0429f0
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue