added check function and some fixes in display error

This commit is contained in:
wt committed 2024-12-26 10:59:12 +07:00
1 parent d1c5ba1e05
commit ff282a0469
2 files changed
+53 -42

No files matched your search

+1 -1
View File
@@ -11,7 +11,6 @@ install:
fi
if [ ! -d ${DESTDIR}/usr/bin ]; then \
mkdir -pv ${DESTDIR}/usr/bin; \
cp -v src/pm ${DESTDIR}/usr/bin/pm; \
fi
if [ ! -d ${DESTDIR}/usr/share/pm ]; then \
mkdir -pv ${DESTDIR}/usr/share/pm/{packages,repos}; \
@@ -20,6 +19,7 @@ install:
if [ ! -d ${DESTDIR}/var/cache/pm/pkg ]; then \
mkdir -pv ${DESTDIR}/var/cache/pm/pkg; \
fi
cp -v src/pm ${DESTDIR}/usr/bin/pm;
uninstall:
if [ -d ${DESTDIR}/etc/pm ]; then \