Skip to content

Commit 43cf550

Browse files
committed
Fixes #103
1 parent 1dcf30d commit 43cf550

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/common.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ function gitclone(){
106106
then
107107
repo_dir=$(echo ${repo_dir} | sed 's%^.*/\([^/]*\)\(\.git\)?$%\1%g')
108108
fi
109-
110-
sudo -u "${BASE_USER}" git clone $clone_params "$build_repo" "$repo_dir"
109+
110+
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
111115

112116
if [ "$build_repo" != "$ship_repo" ]
113117
then

0 commit comments

Comments
 (0)