mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 12:37:46 +00:00
Simplify
No other args
This commit is contained in:
@@ -12,11 +12,10 @@ if ! cmp -s /proc/1/root/ / 2>/dev/null; then
|
||||
fi
|
||||
|
||||
chrootable_systemctl_enable() {
|
||||
local args=("$@")
|
||||
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
||||
sudo systemctl "${args[@]}" enable
|
||||
sudo systemctl enable $1
|
||||
else
|
||||
sudo systemctl "${args[@]}" enable --now
|
||||
sudo systemctl enable --now $1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user