From 10dcfca9f18648f3fb32f0810d36af4e1eaf76e0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Aug 2005 12:19:59 +0000 Subject: r9580: put the libinclude() after the GetOptions so the smb.conf is loaded to get the libjs path (This used to be commit ee0b693ffaf02e75d3d740c36fffb9ea75e54431) --- source4/scripting/bin/winreg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/scripting/bin/winreg') diff --git a/source4/scripting/bin/winreg b/source4/scripting/bin/winreg index 12f40f1155..ac6f9e61ba 100755 --- a/source4/scripting/bin/winreg +++ b/source4/scripting/bin/winreg @@ -6,9 +6,6 @@ exec smbscript "$0" ${1+"$@"} Released under the GNU GPL v2 or later */ -libinclude("base.js"); -libinclude("winreg.js"); - var options = GetOptions(ARGV, "POPT_AUTOHELP", "POPT_COMMON_SAMBA", @@ -19,6 +16,9 @@ if (options == undefined) { return -1; } +libinclude("base.js"); +libinclude("winreg.js"); + if (options.ARGV.length < 1) { println("Usage: winreg.js [path]"); return -1; @@ -91,7 +91,7 @@ if (options.ARGV.length > 1) { if (options.createkey) { var ok = reg.create_key("HKLM\\SOFTWARE", options.createkey); if (!ok) { - + println("Failed to create key"); } } else { printf("Listing registry tree '%s'\n", root); -- cgit