diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-03-26 10:39:53 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-03-26 10:39:53 +0200 |
commit | 3774d08c76ac244e59802d44e2e730e02765a91d (patch) | |
tree | 7d0c92de9b0987c7bfb9ab33ccbd8476d57796f1 /utils.sh | |
parent | 410e8e479a591ce298551e200a3d95e4e78cafe5 (diff) |
Misc bug fixes
Diffstat (limited to 'utils.sh')
-rwxr-xr-x | utils.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,7 +4,12 @@ check_dest() { [ -d "$OT_PREFIX/tmp" ] || mkdir -p "$OT_PREFIX/tmp" if ! [ -d "$OT_PREFIX/tmp" ]; then - echo "Could not create target directory! Aborting..." + echo "Could not create OT_PREFIX directory! Aborting..." + exit 1 + fi + [ -d "$HOME/.opentox" ] || mkdir -p "$HOME/.opentox" + if ! [ -d "$HOME/.opentox" ]; then + echo "Could not create .opentox directory! Aborting..." exit 1 fi } @@ -35,6 +40,6 @@ abs_path() } . "`pwd`/config.sh" +check_dest touch "$OT_UI_CONF" . "$OT_UI_CONF" 2>/dev/null -check_dest |