Skip to content

Instantly share code, notes, and snippets.

@ab
Created September 4, 2014 23:05
Show Gist options
  • Select an option

  • Save ab/7fdaa4bf410de1ac5054 to your computer and use it in GitHub Desktop.

Select an option

Save ab/7fdaa4bf410de1ac5054 to your computer and use it in GitHub Desktop.
set -e nonsense
#!/bin/bash
set -e
false() {
echo 'this is false'
command false
}
echo 'starting'
if false; then
echo 'true block'
else
echo 'else block'
fi
echo 'done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment