From 1b79c31f268d9b3fcb428e059ca081b7c2446791 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 18 Nov 2022 10:42:49 -0500 Subject: [PATCH] Remove shellchecke exception --- README.md | 4 ++-- install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6322f8b..6becdef 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ `makepac` is a simple configuration manager for a linux system -A typical linux app needs multiple files in different paths spread in the file-system. E.g. systemd service, timer, app config, webserver config, logrotate config. `makepac` keeps all configs in a single place in a git repository and creates symlinks in real root +A typical linux app needs multiple files in different paths spread in the file-system. E.g. systemd service, timer, app config, webserver config, logrotate config. `makepac` keeps all configs in a single place in a git repository and copies them to real root Easily share the setup to other user. @@ -48,7 +48,7 @@ Usage See https://gitlab.com/balki/makepac for usage help: Show this help - install: Symlinks files in root/ to real root + install: copies files in root/ to real root with same permissions sd-reload: Run this after editing systemd service/timer files sd-users: Run this after adding new users save-perms: Saves the file permissions to ./acl. Run this after adding new files with correct permissions diff --git a/install.sh b/install.sh index e7e6b8c..f37dce3 100755 --- a/install.sh +++ b/install.sh @@ -11,8 +11,8 @@ do install_path="${f#"$root"}" mkdir -p "$(dirname "$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" + read -ra perm_options < <(stat -c '-m %a -g %g -o %u' "$PWD/$f") + install -C "${perm_options[@]}" "$PWD/$f" "$install_path" done # vim: set filetype=bash: