summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffdc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffdc b/ffdc
index 7aafc76..3adf81c 100644
--- a/ffdc
+++ b/ffdc
@@ -43,10 +43,11 @@ while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-d|--dir)
- if [ -d "$2" ]; then
+ mkdir -p "$2"
+ if [ $? -eq 0 ]; then
dest="$2"
else
- echo "Invalid or no destination directory specified."
+ echo "Failed to create the destination directory specified."
break
fi
shift 2
OpenPOWER on IntegriCloud