diff --git a/Makefile b/Makefile index 2f577bf6c6..234b872e43 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# force makefile to use bash instead of sh. +SHELL := /usr/bin/env bash + .PHONY: all all: revad reva test-go lint gen-doc diff --git a/changelog/unreleased/fix-makefile.md b/changelog/unreleased/fix-makefile.md new file mode 100644 index 0000000000..1b45076af3 --- /dev/null +++ b/changelog/unreleased/fix-makefile.md @@ -0,0 +1,7 @@ +Bugfix: Fix Makefile error on Ubuntu + +I've fixed Makefile using sh which is defaulted to dash in ubuntu, dash doesn't support +`[[ ... ]]` syntax and Makefile would throw `/bin/sh: 1: [[: not found` errors. + +https://github.com/cs3org/reva/pull/3780 +https://github.com/cs3org/reva/issues/3773