aboutsummaryrefslogtreecommitdiffstats
path: root/script-updates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-25 21:19:10 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-25 21:19:10 +0200
commit25a22e2e1c8d7f2dd195e76acf29b6ae8f6c6bfe (patch)
treee454fbc86a674b1a40bacf7010c928fccde00ad3 /script-updates
parent1c4dfeaa4aef8121377821184c0ed798605e6282 (diff)
script-updates: get source from array
Diffstat (limited to 'script-updates')
-rw-r--r--script-updates3
1 files changed, 1 insertions, 2 deletions
diff --git a/script-updates b/script-updates
index 48d9ca9..be9d373 100644
--- a/script-updates
+++ b/script-updates
@@ -56,8 +56,7 @@
:if ([ :len $SourceNew ] > 0) do={
:if ([ :pick $SourceNew 0 5 ] = "#!rsc") do={
- :local SourceCurrent [ / system script get $Script source ];
- :if ($SourceNew != $SourceCurrent) do={
+ :if ($SourceNew != $ScriptVal->"source") do={
:local DontRequirePermissions \
($SourceNew~"\n# requires: dont-require-permissions=yes\n");
:log info ("Updating script: " . $ScriptVal->"name");