We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f47980 commit 432186cCopy full SHA for 432186c
pkg/lib/commands/do-uninstall.sh
@@ -21,11 +21,13 @@ do-uninstall() {
21
util.parse_package_full "$repoSpec"
22
IFS=':' read -r site user repository ref <<< "$REPLY"
23
24
- if [ ! -e "$BPM_PACKAGES_PATH/$user/$repository" ]; then
+ 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
29
die "Package '$user/$repository' is not installed"
30
fi
-
- do_actual_uninstall "$user/$repository"
31
32
done
33
}
0 commit comments