fix spacing on code

This commit is contained in:
Squidly271
2018-02-02 21:00:48 -05:00
parent b2cf6fec8d
commit 9d8806e8b1

View File

@@ -495,13 +495,13 @@ if ($method == "install") {
// Bergware change: add user or system plugin selection - deprecated
$plugintype = plugin("plugintype", $plugin_file, $error);
$target = $plugintype != "system" ? "/boot/config/plugins/$plugin" : "/boot/plugins/$plugin";
if ( ! plugin("noInstall",$plugin_file,$error) ) {
if ($target != $plugin_file) copy($plugin_file, $target);
symlink($target, "/var/log/plugins/$plugin");
echo "plugin: installed\n";
} else {
echo "Script: executed\n";
}
if ( ! plugin("noInstall",$plugin_file,$error) ) {
if ($target != $plugin_file) copy($plugin_file, $target);
symlink($target, "/var/log/plugins/$plugin");
echo "plugin: installed\n";
} else {
echo "Script: executed\n";
}
exit(0);
}