citadel-core/events/triggers/app

14 lines
307 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2022-01-28 06:52:26 +00:00
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
#
2022-01-21 20:37:48 +00:00
# SPDX-License-Identifier: GPL-3.0-or-later
CITADEL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../..)"
signal="${1}"
command=${signal%%"-"*}
app=${signal#*"-"}
2022-02-01 17:50:59 +00:00
"${CITADEL_ROOT}/scripts/app" "${command}" "${app}"