fix: cache newly added apt source before install

This commit is contained in:
Julien Oculi 2024-06-05 17:49:48 +02:00
parent 4fe08982cd
commit 5297c81fee

View file

@ -5,6 +5,7 @@ if [[ $(which eza) != "/usr/bin/eza" ]]; then
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | gpg --dearmor -o /etc/apt/keyrings/gierens.gpg wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | tee /etc/apt/sources.list.d/gierens.list echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | tee /etc/apt/sources.list.d/gierens.list
chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
apt update # Cache new repository
fi fi
# Install or upgrade zsh and eza # Install or upgrade zsh and eza