Skip to content

Commit

Permalink
Fixes #103
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Feb 11, 2021
1 parent 1dcf30d commit 43cf550
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ function gitclone(){
then
repo_dir=$(echo ${repo_dir} | sed 's%^.*/\([^/]*\)\(\.git\)?$%\1%g')
fi

sudo -u "${BASE_USER}" git clone $clone_params "$build_repo" "$repo_dir"

if [ "$repo_dir" == "" ]; then
sudo -u "${BASE_USER}" git clone $clone_params "$build_repo"
else
sudo -u "${BASE_USER}" git clone $clone_params "$build_repo" "$repo_dir"
fi

if [ "$build_repo" != "$ship_repo" ]
then
Expand Down

0 comments on commit 43cf550

Please sign in to comment.