From 00aef6402e1360e3ed6a90a8279af533d80ca95e Mon Sep 17 00:00:00 2001 From: leukipp Date: Wed, 9 Jul 2025 20:21:24 +0200 Subject: [PATCH] fix: use apt instead of dpkg #28 --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 1b95568..6bd1916 100755 --- a/install.sh +++ b/install.sh @@ -33,6 +33,7 @@ sed 's/"browser_download_url": "//;s/"//g') TMP_DIR=$(mktemp -d) DEB_PATH="${TMP_DIR}/$(basename "$DEB_URL")" +chmod 755 "$TMP_DIR" if [ -z "$DEB_URL" ]; then echo "Download url for .deb file not found." @@ -47,12 +48,12 @@ fi # Install the latest .deb package echo -e "\nInstalling the latest release..." -if ! command -v dpkg &> /dev/null; then - echo "Package manager dpkg was not found." +if ! command -v apt &> /dev/null; then + echo "Package manager apt was not found." exit 1 fi -if ! sudo dpkg -i "$DEB_PATH"; then +if ! sudo apt install "$DEB_PATH"; then echo "Installation of .deb file failed." exit 1 fi