From eee9e38b7d7a7954a3be6e22a58eeb9508bd26d6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 29 Nov 2024 11:55:03 +0100 Subject: [PATCH] shell/interactive --- sh/main.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sh/main.sh b/sh/main.sh index 6c18b48..692664a 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -74,6 +74,13 @@ sh_help() { "u__… = user" } +sh_shell_interactive() { + case "${-}" in + *i*) ;; + *) return 1 ;; + esac +} + sh_source_directory() { local path="${1}" [ -d "${path}" ] ||