update debscripts for compatibility with pacman format

This commit is contained in:
Leonid Pliushch
2021-09-10 19:33:36 +03:00
parent 6a54b19a37
commit 9608af5a38
25 changed files with 42 additions and 37 deletions

View File

@@ -97,7 +97,7 @@ termux_step_create_debscripts() {
cat <<- PRERM_EOF > ./prerm
#!$TERMUX_PREFIX/bin/sh
if [ "\$1" != "remove" ]; then
if [ "$TERMUX_PACKAGE_FORMAT" != "pacman" ] && [ "\$1" != "remove" ]; then
exit 0
fi