mirror of
https://github.com/ellie/atuin.git
synced 2024-09-11 21:18:22 +03:00
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.
This commit is contained in:
parent
88b2651ba4
commit
d36ff138ab
@ -71,9 +71,9 @@ __atuin_install_ubuntu(){
|
|||||||
TEMP_DEB="$(mktemp)" &&
|
TEMP_DEB="$(mktemp)" &&
|
||||||
curl -Lo "$TEMP_DEB" "$ARTIFACT_URL"
|
curl -Lo "$TEMP_DEB" "$ARTIFACT_URL"
|
||||||
if command -v sudo &> /dev/null; then
|
if command -v sudo &> /dev/null; then
|
||||||
sudo dpkg -i "$TEMP_DEB"
|
sudo apt install "$TEMP_DEB"
|
||||||
else
|
else
|
||||||
su -l -c "dpkg -i '$TEMP_DEB'"
|
su -l -c "apt install '$TEMP_DEB'"
|
||||||
fi
|
fi
|
||||||
rm -f "$TEMP_DEB"
|
rm -f "$TEMP_DEB"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user