diff options
author | Rick Elrod <rick@elrod.me> | 2023-07-14 07:35:39 +0200 |
---|---|---|
committer | Rick Elrod <rick@elrod.me> | 2023-07-14 19:06:55 +0200 |
commit | b8ba2feecd71c5e33eaead004b89807d27661461 (patch) | |
tree | eafe33ee56a60d9c4285c577f5061d49d56cb9b6 /Makefile | |
parent | Migrate from django-redis to Django's built-in Redis caching support (#14210) (diff) | |
download | awx-b8ba2feecd71c5e33eaead004b89807d27661461.tar.xz awx-b8ba2feecd71c5e33eaead004b89807d27661461.zip |
Tell Makefile and pre-commit.sh that they are bash
On some systems, /bin/sh is a bash symlink and running it will launch
bash in sh compatibility mode. However, bash-specific syntax will still
work in this mode (for example using == or pipefail).
However, on systems where /bin/sh is a symlink to another shell (think:
Debian-based) they might not have those bashisms.
Set the shell in the Makefile, so that it uses bash (since it is already
depending on bash, even though it is calling it as /bin/sh by default),
and add a shebang to pre-commit.sh for the same reason.
Signed-off-by: Rick Elrod <rick@elrod.me>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,6 +1,7 @@ -include awx/ui_next/Makefile PYTHON := $(notdir $(shell for i in python3.9 python3; do command -v $$i; done|sed 1q)) +SHELL := bash DOCKER_COMPOSE ?= docker-compose OFFICIAL ?= no NODE ?= node |