We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dcf30d commit 43cf550Copy full SHA for 43cf550
src/common.sh
@@ -106,8 +106,12 @@ function gitclone(){
106
then
107
repo_dir=$(echo ${repo_dir} | sed 's%^.*/\([^/]*\)\(\.git\)?$%\1%g')
108
fi
109
-
110
- sudo -u "${BASE_USER}" git clone $clone_params "$build_repo" "$repo_dir"
+
+ if [ "$repo_dir" == "" ]; then
111
+ sudo -u "${BASE_USER}" git clone $clone_params "$build_repo"
112
+ else
113
+ sudo -u "${BASE_USER}" git clone $clone_params "$build_repo" "$repo_dir"
114
+ fi
115
116
if [ "$build_repo" != "$ship_repo" ]
117
0 commit comments