diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-25 21:19:10 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-25 21:19:10 +0200 |
commit | 25a22e2e1c8d7f2dd195e76acf29b6ae8f6c6bfe (patch) | |
tree | e454fbc86a674b1a40bacf7010c928fccde00ad3 /script-updates | |
parent | 1c4dfeaa4aef8121377821184c0ed798605e6282 (diff) |
script-updates: get source from array
Diffstat (limited to 'script-updates')
-rw-r--r-- | script-updates | 3 |
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"); |