From 449993033a26835111986ece3598357c68b9ab5e Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 25 Jan 2023 04:38:31 +0000 Subject: [PATCH] Update file run_before_01-add-temporary-includes.tmpl --- .../_universal/run_before_01-add-temporary-includes.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl b/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl index cf9a50c8..0529d13f 100644 --- a/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl +++ b/home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl @@ -1,20 +1,22 @@ {{- if (ne .host.distro.family "windows") -}} +if [ ! -f /tmp/tmp-profile ]; then ### Add pre-scaffolding profile to /tmp/tmp-profile so it's easier to navigate through scripts cat << EOF > /tmp/tmp-profile #!/usr/bin/env bash {{ includeTemplate "universal/profile-inline" }} EOF - ### Make /tmp/tmp-profile owned by root to prevent tampering sudo chown root /tmp/tmp-profile +fi +if [ ! -f /tmp/tmp-logg ]; then ### Add pre-scaffolding /tmp/tmp-logg cat << EOF > /tmp/tmp-logg #!/usr/bin/env bash {{ includeTemplate "universal/logg-inline" }} EOF - ### Make /tmp/tmp-logg owned by root to prevent tampering sudo chown root /tmp/tmp-logg +fi {{ end -}} \ No newline at end of file