Skip to content

Commit

Permalink
fail script on error exit status from any command
Browse files Browse the repository at this point in the history
failsafe option; terminate script if there's an error exit status from any command (tested this, all command should return success)
  • Loading branch information
ardentperf committed Sep 26, 2014
1 parent 9e89721 commit e83e785
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions makebook/setup.sh
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

# switch package source to ubuntu archive server
sudo sed -i -e 's/us-.*.archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
Expand Down

0 comments on commit e83e785

Please sign in to comment.