From a945e273b7907cf2227f13f9e6e0319469ba24fc Mon Sep 17 00:00:00 2001 From: Jason Morganson <128727+jasonmorganson@users.noreply.github.com> Date: Sun, 27 Oct 2024 12:29:45 -0400 Subject: [PATCH] Revert "Try script again" This reverts commit 2750f519bf72766ddcd72c2568b42dc2577aa7a2. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index dc552e48..46995f9d 100755 --- a/install.sh +++ b/install.sh @@ -23,6 +23,8 @@ fi # POSIX way to get script's dir: https://stackoverflow.com/a/29834779/12156188 script_dir="$(cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P)" +set -- init --apply --source="${script_dir}" + echo "Running 'chezmoi $*'" >&2 # exec: replace current process with chezmoi -exec script -q -c "$chezmoi init --apply --source=\"${script_dir}\"" +exec "$chezmoi" "$@"