In addition to what Steve has said, if your shell scripts start with:
#!/bin/bash
set -euo pipefail
it makes working out what went wrong with a shell script easier, shell scripting is arcane at the best of times :~)
hth
Fred
Fred Crowson
Learning Technologist
+44 (0)141 270 8285 (direct)
[log in to unmask]
|