mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-26 14:13:23 +00:00
scripts: fallback to empty config table if args were not passed from the config files
Fixes #158
This commit is contained in:
parent
8844cfb074
commit
18bc3d3596
@ -5,7 +5,7 @@
|
||||
--
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
|
||||
-- preprocess rules and create Interest objects
|
||||
for _, r in ipairs(config.rules or {}) do
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
-- Receive script arguments from config.lua
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
|
||||
items = {}
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
--
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
|
||||
-- whether to store state on the file system
|
||||
use_persistent_storage = config["use-persistent-storage"] or false
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
-- Receive script arguments from config.lua
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
|
||||
-- ensure config.properties is not nil
|
||||
config.properties = config.properties or {}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
-- Receive script arguments from config.lua
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
|
||||
-- ensure config.properties is not nil
|
||||
config.properties = config.properties or {}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
--
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
config.roles = config.roles or {}
|
||||
config["duck.level"] = config["duck.level"] or 0.3
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
-- Receive script arguments from config.lua
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
config.roles = config.roles or {}
|
||||
|
||||
local self = {}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
-- Receive script arguments from config.lua
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
|
||||
-- ensure config.move and config.follow are not nil
|
||||
config.move = config.move or false
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
-- Receive script arguments from config.lua
|
||||
local config = ...
|
||||
local config = ... or {}
|
||||
|
||||
-- ensure config.move and config.follow are not nil
|
||||
config.move = config.move or false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user