]> Git repositories of Lucie Scarlet - dotfiles.git/commitdiff
Added `set -euxo pipefail` and combined the pacman commands
authorLucie Scarlet <lucie@scarlet.moe>
Sat, 17 Aug 2024 16:08:12 +0000 (18:08 +0200)
committerLucie Scarlet <lucie@scarlet.moe>
Sat, 17 Aug 2024 16:08:12 +0000 (18:08 +0200)
Since you can install using `pacman -Syu` it doesn't make sense to run
that first, then running `pacman -S` afterwards. Also, it didn't do
`--noconfirm` so if there were something to update, it would fail the
install.

i3/install.sh

index 7deacb0d500d8bddf5825a79201f1c5de601fb2f..bd14c6b505d08857fe70d00f4c0c0dd5a1afa76b 100755 (executable)
@@ -27,6 +27,7 @@ echo "Installing Nitrogen and Variety"
 
 if [[ -x /bin/apt ]]; then
 sudo -s <<EOF
+set -euxo pipefail
 apt update -y
 apt install -y nitrogen variety
 EOF
@@ -34,8 +35,8 @@ fi
 
 if [[ -x /bin/pacman ]]; then
 sudo -s <<EOF
-pacman -Syu
-pacman -S --noconfirm nitrogen variety
+set -euxo pipefail
+pacman -Syu --noconfirm nitrogen variety
 EOF
 fi