Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

always add /usr/local/bin to $PATH

commit bdf2b74a18b2c5a495d17a103867e6e0c04e15d3 1 parent c9541ca
@berekuk authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  bin/ubic
  2. +3 −0  bin/ubic-watchdog
View
3  bin/ubic
@@ -66,6 +66,9 @@ use Ubic;
use Ubic::Cmd;
return 1 if caller();
+unless (grep { $_ eq '/usr/local/bin' } split /:/, $ENV{PATH}) {
+ $ENV{PATH} .= '/usr/local/bin';
@druxa Collaborator
druxa added a note

":" ?

@berekuk Owner
berekuk added a note

Oops. Thanks, fixed in 842b653.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+}
my $force;
GetOptions(
View
3  bin/ubic-watchdog
@@ -42,6 +42,9 @@ use Pod::Usage;
use Ubic::Watchdog;
return 1 if caller();
+unless (grep { $_ eq '/usr/local/bin' } split /:/, $ENV{PATH}) {
+ $ENV{PATH} .= '/usr/local/bin';
+}
my $compile_timeout = 10;
my $verbose;
Please sign in to comment.
Something went wrong with that request. Please try again.