aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-03 16:50:21 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-03 16:59:10 +0200
commit6f354c8bb0e412993b7df350f2f9b22e1966677b (patch)
tree6083186db36993e6e50e408ad5853f6d35590e9a /global-functions
parent9c3ce55ee4767b9708a226b3b51c5ad7e1c390c8 (diff)
global-functions: $ScriptFromTerminal: use $LogPrintExit
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 42e5fcf..0b1ba77 100644
--- a/global-functions
+++ b/global-functions
@@ -379,16 +379,19 @@
:set ScriptFromTerminal do={
:local Script [ :tostr $1 ];
+ :global LogPrintExit;
+
:foreach Job in=[ / system script job find where script=$Script ] do={
:set Job [ / system script job get $Job ];
:while ([ :typeof ($Job->"parent") ] = "id") do={
:set Job [ / system script job get [ find where .id=($Job->"parent") ] ];
}
:if (($Job->"type") = "login") do={
- :log debug ("Script " . $Script . " started from terminal.");
+ $LogPrintExit debug ("Script " . $Script . " started from terminal.") false;
:return true;
}
}
+ $LogPrintExit debug ("Script " . $Script . " NOT started from terminal.") false;
:return false;
}