feat(eza): use apt install when >=24.04
This commit is contained in:
parent
76774e7116
commit
fca6f79f46
@ -85,9 +85,13 @@ configure_install_eza() {
|
||||
elif [[ $(uname -m) != "x86_64" && $(uname -m) != "aarch64" ]]; then
|
||||
echo "eza is not supported on $(uname -m)."
|
||||
elif ! command_exists eza; then
|
||||
unzip $scriptdir/files/eza_$(uname -m)-unknown-linux-musl.zip -d $tempdir/eza
|
||||
sudo cp $tempdir/eza/eza /usr/local/bin/
|
||||
rm $tempdir/eza -r
|
||||
if [[ "$(lsb_release -is)" == "Ubuntu" && ("$(lsb_release -rs)" == "24.04" || "$(lsb_release -rs)" > "24.04") ]]; then
|
||||
sudo apt install eza -y
|
||||
else
|
||||
unzip $scriptdir/files/eza_$(uname -m)-unknown-linux-musl.zip -d $tempdir/eza
|
||||
sudo cp $tempdir/eza/eza /usr/local/bin/
|
||||
rm $tempdir/eza -r
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user