Skip to content

Commit 432186c

Browse files
committed
ci: Fix failing tests
1 parent 2f47980 commit 432186c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/lib/commands/do-uninstall.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ do-uninstall() {
2121
util.parse_package_full "$repoSpec"
2222
IFS=':' read -r site user repository ref <<< "$REPLY"
2323

24-
if [ ! -e "$BPM_PACKAGES_PATH/$user/$repository" ]; then
24+
if [ -d "$BPM_PACKAGES_PATH/$user/$repository" ]; then
25+
do_actual_uninstall "$user/$repository"
26+
elif [ -f "$BPM_PACKAGES_PATH/$user/$repository" ]; then
27+
rm -f "$BPM_PACKAGES_PATH/$user/$repository"
28+
else
2529
die "Package '$user/$repository' is not installed"
2630
fi
27-
28-
do_actual_uninstall "$user/$repository"
2931
fi
3032
done
3133
}

0 commit comments

Comments
 (0)