mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
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:
2
Makefile
2
Makefile
@@ -90,7 +90,7 @@ OFFLINE_TAR_NAME=$(NAME)-offline-$(DIST_FULL)-$(VERSION)-$(RELEASE)
|
|||||||
OFFLINE_TAR_FILE=$(OFFLINE_TAR_NAME).tar.gz
|
OFFLINE_TAR_FILE=$(OFFLINE_TAR_NAME).tar.gz
|
||||||
OFFLINE_TAR_LINK=$(NAME)-setup-latest.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)
|
ifeq ($(DISTRO),ubuntu)
|
||||||
SETUP_INSTALL_ARGS = --skip-build --no-compile --root=$(DESTDIR) -v --install-layout=deb
|
SETUP_INSTALL_ARGS = --skip-build --no-compile --root=$(DESTDIR) -v --install-layout=deb
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user