Skip to content

Commit f145771

Browse files
committed
ci: Fix macOS and its absense of '--ignore-fail-on-non-empty' flag for rmdir
1 parent 6373a7a commit f145771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/lib/commands/do-uninstall.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ do_actual_uninstall() {
4242
do-plumbing-unlink-completions "$package"
4343

4444
rm -rf "${BPM_PACKAGES_PATH:?}/$package"
45-
rmdir --ignore-fail-on-non-empty "${BPM_PACKAGES_PATH:?}/${package%/*}"
45+
if ! rmdir "${BPM_PACKAGES_PATH:?}/${package%/*}"; then
46+
# Do not exit on failure
47+
:
48+
fi
4649
}

0 commit comments

Comments
 (0)