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
|
fi
|
||||||
|
|
||||||
chrootable_systemctl_enable() {
|
chrootable_systemctl_enable() {
|
||||||
local args=("$@")
|
|
||||||
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
||||||
sudo systemctl "${args[@]}" enable
|
sudo systemctl enable $1
|
||||||
else
|
else
|
||||||
sudo systemctl "${args[@]}" enable --now
|
sudo systemctl enable --now $1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user