Skip to content

Commit 493f73c

Browse files
committed
fix: avoid #29
1 parent 8eedda6 commit 493f73c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ local_dir="${HOME}/$(tr -cd 'a-f0-9' < /dev/urandom | head -c 32)"
6262
if git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_repo}" "${local_dir}"; then
6363
cd "${local_dir}"
6464

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

0 commit comments

Comments
 (0)