diff options
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"); |