diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-08 18:58:19 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-08 18:58:19 -0500 |
commit | a4908c7bcad64fab32fa86c907b35ed4fbc41d27 (patch) | |
tree | e0a39d04277d73e9dcc0f8cc5a1a956e01e0beff | |
parent | 6f32d3b580c0b4ae24b19ee76864b30d7e004b67 (diff) | |
download | squashfu-a4908c7bcad64fab32fa86c907b35ed4fbc41d27.tar.gz |
Refine config import
-rwxr-xr-x | squashfu | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,13 +10,14 @@ info () { } die () { - echo -e '\033[1;31mERROR ::\033[1;m ' $* + echo -e '\033[1;31mFATAL ::\033[1;m ' $* exit 1 } +# Source default config, and bail on bad syntax CONFIG=/etc/squashfu.conf source $CONFIG -[[ $? -gt 0 ]] && die "Error in config file. Please check your syntax" +[[ $? -gt 0 ]] && die "Syntax error in config file." create_new_seed () { # Create a new squashfs based on the contents of the union |