Permalink
Browse files

always add /usr/local/bin to $PATH

  • Loading branch information...
1 parent c9541ca commit bdf2b74a18b2c5a495d17a103867e6e0c04e15d3 @berekuk committed May 2, 2013
Showing with 6 additions and 0 deletions.
  1. +3 −0 bin/ubic
  2. +3 −0 bin/ubic-watchdog
View
@@ -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

druxa May 2, 2013

Collaborator

":" ?

@berekuk

berekuk May 2, 2013

Owner

Oops. Thanks, fixed in 842b653.

+}
my $force;
GetOptions(
View
@@ -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;

0 comments on commit bdf2b74

Please sign in to comment.