From 17b38675305a61025cbebcb6b2ae6ba8d586a30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 19 Dec 2021 06:14:54 +0100 Subject: [PATCH] Replace dpkg with apt 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 c1887402f4f..c9230865a27 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" }