fix: avoid #29

This commit is contained in:
peaceiris 2019-09-25 02:43:21 +09:00
parent 8eedda6921
commit 493f73c406

View File

@ -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