4 ms·
The first two statements of your BASH script should be
- jjgreen 7y ago#!/bin/sh # don't need bash for this
- linsomniac 7y ago/bin/dash: 2: set: Illegal option -o pipefail
- gjvc 7y agoSpace between "#!" and the path lets the text breathe :-) #! /usr/bin/env bash set -euo pipefail
- linsomniac 7y agoA couple years ago I switched to doing "set -eu" in all my shell scripts and have been quite happy with it. While developing the script I'll also often add "set -xv" for debugging.