From c64fef4baf83022d405b17400d50b14e04d0ecf7 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Thu, 17 Nov 2022 15:31:42 -0500 Subject: [PATCH] use install instead of ln --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 901b8d1..e7e6b8c 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,9 @@ for f in $(all_files) do install_path="${f#"$root"}" mkdir -p "$(dirname "$install_path")" - ln -snf "$PWD/$f" "$install_path" + # ln -snf "$PWD/$f" "$install_path" + # shellcheck disable=SC2046 + install -C $(stat -c '-m %a -g %g -o %u' "$PWD/$f") "$PWD/$f" "$install_path" done # vim: set filetype=bash: