Remove shellchecke exception
This commit is contained in:
parent
c64fef4baf
commit
1b79c31f26
@ -1,6 +1,6 @@
|
|||||||
`makepac` is a simple configuration manager for a linux system
|
`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.
|
Easily share the setup to other user.
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ Usage
|
|||||||
See https://gitlab.com/balki/makepac for usage
|
See https://gitlab.com/balki/makepac for usage
|
||||||
|
|
||||||
help: Show this help
|
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-reload: Run this after editing systemd service/timer files
|
||||||
sd-users: Run this after adding new users
|
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
|
save-perms: Saves the file permissions to ./acl. Run this after adding new files with correct permissions
|
||||||
|
@ -11,8 +11,8 @@ do
|
|||||||
install_path="${f#"$root"}"
|
install_path="${f#"$root"}"
|
||||||
mkdir -p "$(dirname "$install_path")"
|
mkdir -p "$(dirname "$install_path")"
|
||||||
# ln -snf "$PWD/$f" "$install_path"
|
# ln -snf "$PWD/$f" "$install_path"
|
||||||
# shellcheck disable=SC2046
|
read -ra perm_options < <(stat -c '-m %a -g %g -o %u' "$PWD/$f")
|
||||||
install -C $(stat -c '-m %a -g %g -o %u' "$PWD/$f") "$PWD/$f" "$install_path"
|
install -C "${perm_options[@]}" "$PWD/$f" "$install_path"
|
||||||
done
|
done
|
||||||
|
|
||||||
# vim: set filetype=bash:
|
# vim: set filetype=bash:
|
||||||
|
Loading…
Reference in New Issue
Block a user