From eb914176b8ec9224f03a47783906c0a68d4716d0 Mon Sep 17 00:00:00 2001 From: nagumii Date: Wed, 12 Feb 2025 16:46:23 +0200 Subject: [PATCH] Update femto_package_template.sh --- .../bin/packages/femto_package_template.sh | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/femto_package_template.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/femto_package_template.sh index 033f652..5fe3e3e 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/femto_package_template.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/packages/femto_package_template.sh @@ -50,19 +50,19 @@ upgrade() { # Check if already installed. `exit 0` if yes, `exit 1` if no check() { - # the following works for cloned repos, but not for apt installs - if [ -d "$location" ]; then - exit 0 - else - exit 1 - fi + ## the following works for cloned repos, but not for apt installs + # if [ -d "$location" ]; then + # exit 0 + # else + # exit 1 + # fi - # this works for apt packages - if dpkg-query -W -f='${Status}' $package_name 2>/dev/null | grep -q "install ok installed"; then - exit 0 - else - exit 1 - fi + ## this works for apt packages + # if dpkg-query -W -f='${Status}' $package_name 2>/dev/null | grep -q "install ok installed"; then + # exit 0 + # else + # exit 1 + # fi } # display license - limit to 2000 chars