Skip to content

Commit e83e785

Browse files
committed
fail script on error exit status from any command
failsafe option; terminate script if there's an error exit status from any command (tested this, all command should return success)
1 parent 9e89721 commit e83e785

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

makebook/setup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

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

0 commit comments

Comments
 (0)