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 <[email protected]>
---
 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.
_______________________________________________
dim-tools mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dim-tools

Reply via email to