summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-02-06 19:49:10 +0100
committerWolfram Sang <wsa+renesas@sang-engineering.com>2019-02-06 19:49:50 +0100
commitbf6478becccc63fe4ac38daef6181976dc9641b7 (patch)
treeb1196c45422fab1846a21497fdd80b78fb8f3bfb
parent2c4f9bc79feb58bd2380c720327a00cb6c3f8b41 (diff)
scripts/periupport_conv: create dest dir if it does not exist
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
-rwxr-xr-xscripts/periupport_conv2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/periupport_conv b/scripts/periupport_conv
index 9ee84fa..49fa00f 100755
--- a/scripts/periupport_conv
+++ b/scripts/periupport_conv
@@ -5,6 +5,8 @@
SRC="$1"
DST="$2"
+[ ! -d "$DST" ] && mkdir -p "$DST"
+
# FIXME: ensure this is not already existing in another task
uuid_cmd="cat /proc/sys/kernel/random/uuid"