Skip to content

Commit c2b56cf

Browse files
committed
github-actionify: delete .travis more robustly
Even with -f, git complains when the file does not exist.
1 parent 9246a84 commit c2b56cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

abd

Whitespace-only changes.

github-actionify.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ EOL
240240
fi
241241

242242
# remove old Travis CI configuration
243-
$EXEC git rm -rf .travis.yml .travis
243+
test ! -e .travis.yml || $EXEC git rm -rf .travis.yml
244+
test ! -e .travis || $EXEC git rm -rf .travis
244245
$EXEC git diff-index --quiet HEAD -- &&
245246
info "No old CI configuration to remove." ||
246247
$EXEC git commit -m "${msgPrefix}remove Travis CI configuration"

0 commit comments

Comments
 (0)