Only add linux-surface
to pacman if necessary
This commit is contained in:
parent
b08cf3d200
commit
f3a9e365f5
1 changed files with 4 additions and 1 deletions
|
@ -9,11 +9,14 @@ curl -s https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg
|
|||
sudo pacman-key --finger 56C464BAAC421453;
|
||||
sudo pacman-key --lsign-key 56C464BAAC421453;
|
||||
|
||||
pacmanConf="/etc/pacman.conf";
|
||||
|
||||
if ! grep "^\[linux-surface\]$" "$pacmanConf"
|
||||
{
|
||||
echo "";
|
||||
echo "[linux-surface]";
|
||||
echo "Server = https://pkg.surfacelinux.com/arch/";
|
||||
} | sudo tee -a /etc/pacman.conf > /dev/null;
|
||||
} | sudo tee -a "$pacmanConf" > /dev/null;
|
||||
|
||||
sudo pacman --noconfirm -Syu;
|
||||
|
||||
|
|
Loading…
Reference in a new issue