Skip to content

Files

Latest commit

6be2096 · Dec 6, 2024

History

History
25 lines (16 loc) · 827 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 827 Bytes

Using Bash for Devops

How to improve Bash error handling with the set builtin

This repo contains example files for Using Bash for DevOps, a blog post on Expedia Group Technology. The blog post contains full instructions for using the scripts.

Clone the repo.

git clone https://github.com/techabstraction/bash-for-devops.git

Change into the project directory.

cd bash-for-devops

To reset the files and start again, source the reset script as shown below, then type y at the confirmation dialogue.

source 0-reset-tutorial.sh

Note, you must use source to run the reset script above to ensure the file_name variable is unset. The other scripts in the repo should not be run using source.