[PATCH] dim:- Create and clone 'maintainer-tools' if not present

Ayan Halder Ayan.Halder at arm.com
Fri Aug 30 10:04:32 UTC 2019


Currently, dim_update_branches fails because $DIM_PREFIX/maintainer-tools is
not present. It should be created and cloned from ${maintainer_tools_https}

Signed-off-by: Ayan Kumar Halder <ayan.halder at arm.com>
---
 dim | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dim b/dim
index 70262b60d513..870ab9d8e371 100755
--- a/dim
+++ b/dim
@@ -2156,6 +2156,11 @@ function dim_update_branches
                fi
        done

+       if [ ! -d $DIM_PREFIX/maintainer-tools ]; then
+               mkdir -p $DIM_PREFIX/maintainer-tools
+               git clone $maintainer_tools_https  $DIM_PREFIX/maintainer-tools
+       fi
+
        cd $DIM_PREFIX/maintainer-tools
        if git_is_current_branch master || git_is_current_branch maintainer-tools; then
                echo "Updating maintainer-tools..."
--
2.21.0

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the dim-tools mailing list