Simplify
No other args
This commit is contained in:
parent
84420db026
commit
cedf20eb36
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user