Skip to content

Commit

Permalink
cmdline install/uninstall/upgrade for Homebrew support
Browse files Browse the repository at this point in the history
Homebrew support #581
Improved logic in rules cleanup
  • Loading branch information
objective-see committed Feb 7, 2024
1 parent 9634524 commit ba066de
Show file tree
Hide file tree
Showing 15 changed files with 662 additions and 264 deletions.
6 changes: 3 additions & 3 deletions LuLu/App/AddRuleWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ -(IBAction)addButtonHandler:(id)sender
if(YES != [path hasSuffix:VALUE_ANY])
{
//show alert
showAlert(@"ERROR: invalid path", [NSString stringWithFormat:@"%@ does not exist!", path], @[@"OK"]);
showAlert(NSAlertStyleWarning, @"ERROR: invalid path", [NSString stringWithFormat:@"%@ does not exist!", path], @[@"OK"]);

//bail
goto bail;
Expand All @@ -330,7 +330,7 @@ -(IBAction)addButtonHandler:(id)sender
(nil == [NSRegularExpression regularExpressionWithPattern:endpointAddr options:0 error:&error]) )
{
//show alert
showAlert(@"ERROR: invalid regex", [NSString stringWithFormat:@"%@ is not a valid regular expression\r\ndetails: %@", endpointAddr, error.localizedDescription], @[@"OK"]);
showAlert(NSAlertStyleWarning, @"ERROR: invalid regex", [NSString stringWithFormat:@"%@ is not a valid regular expression\r\ndetails: %@", endpointAddr, error.localizedDescription], @[@"OK"]);

//bail
goto bail;
Expand All @@ -344,7 +344,7 @@ -(IBAction)addButtonHandler:(id)sender
(NSNotFound != [endpointPort rangeOfCharacterFromSet:[[NSCharacterSet decimalDigitCharacterSet] invertedSet]].location) )
{
//show alert
showAlert(@"ERROR: invalid port", [NSString stringWithFormat:@"%@ is not a valid (port) number", endpointPort], @[@"OK"]);
showAlert(NSAlertStyleWarning, @"ERROR: invalid port", [NSString stringWithFormat:@"%@ is not a valid (port) number", endpointPort], @[@"OK"]);

//bail
goto bail;
Expand Down
Loading

0 comments on commit ba066de

Please sign in to comment.