From 65d51b0a9fb71f157b6c9c3ce81bbde2a72e2d1e Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:23:15 +0200 Subject: [PATCH] Update cmdline.sh --- cmdline.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmdline.sh b/cmdline.sh index ba6eead2..96edec34 100755 --- a/cmdline.sh +++ b/cmdline.sh @@ -4,6 +4,9 @@ # SPDX-License-Identifier: GPL-3.0-or-later # shellcheck enable=all +printf '%s\n' "${0-}" || echo $? +printf '%s\n' "${0-}" | grep -q -m 1 -- 'cmdline.sh$' || echo $? + if test "${A5K_FUNCTIONS_INCLUDED:-false}" = 'false'; then main() {