diff --git a/run_once_01_install_packages.sh.tmpl b/run_once_01_install_packages.sh.tmpl index 00dc09e..d29b1e1 100644 --- a/run_once_01_install_packages.sh.tmpl +++ b/run_once_01_install_packages.sh.tmpl @@ -1,11 +1,15 @@ #!/bin/bash -{{ if eq .chezmoi.osRelease.id "arch" }} - sudo pacman -Syy --needed \ - feh \ - git \ - zsh \ - && true +{{ if .root }} + + {{ if eq .chezmoi.osRelease.id "arch" }} + sudo pacman -Syy --needed \ + feh \ + git \ + zsh \ + && true + {{ end }} + {{ end }} # vim: set ft=bash :