diff --git a/src/DEBIAN/preinst b/src/DEBIAN/preinst index 6162c47..c61a2bd 100755 --- a/src/DEBIAN/preinst +++ b/src/DEBIAN/preinst @@ -1,5 +1,7 @@ #!/bin/bash +PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE" + if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then if [ -e /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then if [ "$(arch)" != "loongarch64" ];then @@ -9,4 +11,4 @@ else mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/amber-ce-loongnix/files/ace-env fi fi -fi \ No newline at end of file +fi