From 82e592e6b83608ce9391327d8378136da6712beb Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 23 Nov 2020 12:10:19 -0600 Subject: [PATCH] root --- run_once_01_install_packages.sh.tmpl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 :