Prettify the script
This commit is contained in:
1 parent
b4fbca1db9
commit
2a8a07039b
1 file changed
+8
-5
@@ -1,12 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
{{ if eq .chezmoi.osRelease.id "nixos" }}
|
|
||||||
exit 0
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
echo "Installing packages..."
|
echo "Installing native packages..."
|
||||||
|
|
||||||
|
# 1. Arch-based
|
||||||
{{ if or (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "cachyos") }}
|
{{ if or (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "cachyos") }}
|
||||||
sudo pacman -Sy --noconfirm
|
sudo pacman -Sy --noconfirm
|
||||||
|
|
||||||
@@ -49,4 +46,10 @@ if [[ ${#aur_pkgs[@]} -gt 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
# 2. NixOS
|
||||||
|
{{ if eq .chezmoi.osRelease.id "nixos" }}
|
||||||
|
exit 0
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
Reference in new issue
Block a user