File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -28,30 +28,26 @@ if [[ "$DIRACX_REPO" =~ ^https?:// ]]; then
28
28
if [[ -d " $TMP_CLONE_DIR " ]]; then
29
29
echo " DiracX installation already done and FORCE=0. Skipping build and clone."
30
30
else
31
- mkdir -p " $TMP_CLONE_DIR "
32
31
echo " Cloning DiracX from remote..."
33
32
rm -rf " $TMP_CLONE_DIR "
34
- git clone --single-branch " $DIRACX_REPO " " $TMP_CLONE_DIR "
33
+ if [ -n " $DIRACX_BRANCH " ]; then
34
+ git clone --branch " $DIRACX_BRANCH " " $DIRACX_REPO " " $TMP_CLONE_DIR "
35
+ else
36
+ git clone " $DIRACX_REPO " " $TMP_CLONE_DIR "
37
+ cd " $TMP_CLONE_DIR "
38
+ tag=$( git describe --tags " $( git rev-list --tags --max-count=1) " )
39
+ echo " No branch specified, defaulting on the last tag: $tag "
40
+ git checkout " $tag "
41
+ cd " $OLD_PWD "
42
+ fi
35
43
fi
36
44
37
45
DIRACX_REPO=" $TMP_CLONE_DIR "
38
-
39
- if [ -n " $DIRACX_BRANCH " ]; then
40
- cd " $DIRACX_REPO "
41
- git checkout " $DIRACX_BRANCH "
42
- echo " Moved to branch $DIRACX_BRANCH "
43
- cd " $OLD_PWD "
44
- else
45
- cd " $DIRACX_REPO "
46
- tag=$( git describe --tags " $( git rev-list --tags --max-count=1) " )
47
- echo " No branch specified, defaulting on the last tag."
48
- git checkout " $tag "
49
- cd " $OLD_PWD "
50
- fi
51
46
else
52
47
echo " Using local DiracX."
53
48
fi
54
49
50
+
55
51
echo " DiracX is setup. Working on the dist folder..."
56
52
57
53
# Handle output directory
You can’t perform that action at this time.
0 commit comments