Skip to content

Commit

Permalink
use apt-get instead of apt (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunk031 authored May 11, 2024
1 parent d730987 commit b91de72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions install/ubuntu/common/eza.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ if [ "${DOTFILES_DEBUG:-}" ]; then
fi

function apt_install_eza() {
sudo apt install -y eza
sudo apt-get install -y eza
}

function apt_install_exa() {
sudo apt install -y exa
sudo apt-get install -y exa
}

function install_eza() {
sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --yes --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
sudo apt update
sudo apt-get update

if ! apt_install_eza; then
apt_install_exa
Expand Down
2 changes: 1 addition & 1 deletion install/ubuntu/common/gh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "${DOTFILES_DEBUG:-}" ]; then
fi

function install_gh() {
type -p curl >/dev/null || sudo apt install curl -y
type -p curl >/dev/null || sudo apt-install curl -y

curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg &&
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg &&
Expand Down

0 comments on commit b91de72

Please sign in to comment.