Handle /bin/sh as the default shell

Fixes a build issue on Ubuntu where the `source` function isn't available
within `/bin/sh` (ubuntu).
This commit is contained in:
James Laska 2015-08-27 11:18:38 -04:00
parent 97d5b7e11b
commit 64b65edf2c

View File

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