From 64b65edf2c11c641115e82b3f4477845f89f220b Mon Sep 17 00:00:00 2001 From: James Laska Date: Thu, 27 Aug 2015 11:18:38 -0400 Subject: [PATCH] Handle /bin/sh as the default shell Fixes a build issue on Ubuntu where the `source` function isn't available within `/bin/sh` (ubuntu). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fde0d07f06..293dd79958 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ OFFLINE_TAR_NAME=$(NAME)-offline-$(DIST_FULL)-$(VERSION)-$(RELEASE) OFFLINE_TAR_FILE=$(OFFLINE_TAR_NAME).tar.gz OFFLINE_TAR_LINK=$(NAME)-setup-latest.tar.gz -DISTRO := $(shell source /etc/os-release 2>/dev/null && echo $${ID} || echo redhat) +DISTRO := $(shell . /etc/os-release 2>/dev/null && echo $${ID} || echo redhat) ifeq ($(DISTRO),ubuntu) SETUP_INSTALL_ARGS = --skip-build --no-compile --root=$(DESTDIR) -v --install-layout=deb else