From d36ff138abc7aac647fbe519b75c2d65216779a2 Mon Sep 17 00:00:00 2001 From: Sandro Date: Sun, 19 Dec 2021 11:13:13 +0100 Subject: [PATCH] Replace dpkg with apt (#248) dpkg is a backend tool not supposed to be used by end users for installing debs. Also apt installs potentials dependencies. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c1887402..c9230865 100755 --- a/install.sh +++ b/install.sh @@ -71,9 +71,9 @@ __atuin_install_ubuntu(){ TEMP_DEB="$(mktemp)" && curl -Lo "$TEMP_DEB" "$ARTIFACT_URL" if command -v sudo &> /dev/null; then - sudo dpkg -i "$TEMP_DEB" + sudo apt install "$TEMP_DEB" else - su -l -c "dpkg -i '$TEMP_DEB'" + su -l -c "apt install '$TEMP_DEB'" fi rm -f "$TEMP_DEB" }