summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-12-19 11:13:13 +0100
committerGitHub <noreply@github.com>2021-12-19 10:13:13 +0000
commitd36ff138abc7aac647fbe519b75c2d65216779a2 (patch)
tree088683ef649ce27f8299a8b22f09b750c62977a3
parent88b2651ba431bdc1a843f1cab03a082639765bd3 (diff)
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.
-rwxr-xr-xinstall.sh4
1 files 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"
}