diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-02-16 12:34:22 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-02-16 12:34:22 +0100 |
| commit | cef91e3dac32f845e32d4ade047853c6101dd78e (patch) | |
| tree | ba16de521553b3f701342d3d35c6f62149f64749 | |
| parent | 4fb58c91416e27a51532f5e83d2f1aff95483a82 (diff) | |
add error handling0.3.0
| -rwxr-xr-x | src/photoalbum.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/photoalbum.sh b/src/photoalbum.sh index 9db5eb9..dc536b6 100755 --- a/src/photoalbum.sh +++ b/src/photoalbum.sh @@ -13,6 +13,11 @@ if [ -z "${RC}" ]; then RC="${DEFAULTRC}" fi +if [ ! -f "${RC}" ]; then + echo "Error: Can not find config file ${RC}" >&2 + exit 1 +fi + usage() { cat - <<USAGE >&2 Usage: |
