Skip to content

Commit 45c4cee

Browse files
committed
no-mistakes: apply CI fixes
1 parent 1d3196e commit 45c4cee

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/fm-account-directory.test.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,13 @@ case "${1:-}" in
268268
[ "${FM_FAKE_TREEHOUSE_RETURN_FAIL:-0}" != 1 ] || exit 71
269269
target=${@: -1}
270270
[ "$target" != . ] || target=$(pwd -P)
271-
printf 'return --force %s\n' "$target" >> "${FM_FAKE_TREEHOUSE_LOG:?}"
271+
[ "$target" = "${FM_FAKE_TREEHOUSE_WORKTREE:?}" ] || exit 72
272272
cd "${FM_TREEHOUSE_RETURN_PROJECT:?}" || exit 1
273-
git worktree remove --force "$target"
273+
git worktree remove --force "$target" || exit 1
274+
git worktree prune || exit 1
275+
[ ! -e "$target" ] || rm -rf -- "$target"
276+
[ ! -e "$target" ] || exit 1
277+
printf 'return --force %s\n' "$target" >> "${FM_FAKE_TREEHOUSE_LOG:?}"
274278
;;
275279
*) exit 2 ;;
276280
esac

0 commit comments

Comments
 (0)