diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-03-23 09:29:39 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-03-23 09:29:39 +0100 |
commit | bdf70a32e1c711623921f6c5c90868d791b3e591 (patch) | |
tree | 3ef702cd8a6f1bceff5dd119cd47b41ea99d19c1 /utils.sh | |
parent | 6568fb04b16e12e29fba0b8ec3287d024d5fc37a (diff) |
mv TMP dir OT_PREFIX
Diffstat (limited to 'utils.sh')
-rwxr-xr-x | utils.sh | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -2,11 +2,10 @@ check_dest() { - if ! [ -d "$OT_PREFIX" ]; then - if ! mkdir -p "$OT_PREFIX"; then - echo "Could not create target directory '$OT_PREFIX'! Aborting..." - exit 1 - fi + [ -d "$OT_PREFIX/tmp" ] || mkdir -p "$OT_PREFIX/tmp" + if ! [ -d "$OT_PREFIX/tmp" ]; then + echo "Could not create target directory! Aborting..." + exit 1 fi } @@ -37,5 +36,5 @@ abs_path() . "`pwd`/config.sh" touch "$OT_UI_CONF" -. "$OT_UI_CONF" +. "$OT_UI_CONF" 2>/dev/null check_dest |