aboutsummaryrefslogtreecommitdiff
path: root/src/remove_pkg.c
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-06-11 22:13:16 +0000
committerdacctal <dacctal@symlinx.net>2026-06-11 22:13:16 +0000
commitf81a7ccdff682acc7a7ec2e6c4dced9bcfde4387 (patch)
tree16c864f5ffe306a661dd37a68f54d184635ed459 /src/remove_pkg.c
parentd057a68a837d278f5dfe55a5dc3c4998e4f126f5 (diff)
IT WORKSindev
Diffstat (limited to 'src/remove_pkg.c')
-rw-r--r--src/remove_pkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remove_pkg.c b/src/remove_pkg.c
index 14e1f4a..ac723b3 100644
--- a/src/remove_pkg.c
+++ b/src/remove_pkg.c
@@ -61,7 +61,7 @@ static int remove_tree(const char *fpath, const struct stat *sb, int typeflag,
}
void remove_pkg(Pkg pkg) {
- if (!file_exists(pkg.src)) {
+ if (!is_directory(pkg.src)) {
printf("%s %s is not installed!\n", print_pkgit, pkg.name);
return;
}