diff --git a/config/show_config b/config/show_config old mode 100755 new mode 100644 index 5e2e3261b5..d6c25f89fa --- a/config/show_config +++ b/config/show_config @@ -121,9 +121,3 @@ show_config() { echo -e "$config_message" } - - -if [ "${FUNCNAME[0]}" = "main" ]; then - . config/options "" - show_config -fi diff --git a/tools/viewconfig b/tools/viewconfig new file mode 100755 index 0000000000..9bcecf63c3 --- /dev/null +++ b/tools/viewconfig @@ -0,0 +1,9 @@ +#!/bin/bash + +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv) + +. config/options "" +. config/show_config + +show_config