I've been trying to run on Ubuntu 16 a bash script that I developed on CentOS 7.
The first line of the script is:
set -o nounset -o pipefail -o errexit
When I try to run this script, I get the following error:
project.sh: 6: set: Illegal option -o pipefail
How to solve this issue?
I also the solution explain in the answer to this question but it did not help (my file is not a make).