Skip to content

Commit

Permalink
fix: avoid #29
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Sep 24, 2019
1 parent 50d4918 commit a9cb351
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ local_dir="${HOME}/$(tr -cd 'a-f0-9' < /dev/urandom | head -c 32)"
if git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_repo}" "${local_dir}"; then
cd "${local_dir}"

print_info "Keeping existing files: ${INPUT_KEEPFILES}"
if [[ ${INPUT_KEEPFILES} != "true" ]]; then
if [[ ${INPUT_KEEPFILES} == "true" ]]; then
print_info "Keeping existing files: ${INPUT_KEEPFILES}"
else
git rm -r --ignore-unmatch '*'
fi

Expand Down

0 comments on commit a9cb351

Please sign in to comment.