[Bps-public-commit] SD branch, master, updated. 5c51b409f6b21fc525b4b4924c749db15bd8d7e8

jesse jesse at bestpractical.com
Tue Mar 17 11:40:38 EDT 2009


The branch, master has been updated
       via  5c51b409f6b21fc525b4b4924c749db15bd8d7e8 (commit)
      from  63da9d7759cfc9248f32ae84c3386982ebcc962e (commit)

Summary of changes:
 lib/App/SD/CLI/Command/Browser.pm |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 5c51b409f6b21fc525b4b4924c749db15bd8d7e8
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Mar 17 11:40:28 2009 -0400

    tiny logic cleanup

diff --git a/lib/App/SD/CLI/Command/Browser.pm b/lib/App/SD/CLI/Command/Browser.pm
index 0a37b13..f7952c5 100644
--- a/lib/App/SD/CLI/Command/Browser.pm
+++ b/lib/App/SD/CLI/Command/Browser.pm
@@ -43,8 +43,7 @@ sub open_url_cmd {
                     firefox iceweasel opera w3m lynx|) {
         my $cmd_path = `which $cmd`;
         chomp($cmd_path);
-        next unless $cmd_path;
-        if ( -f $cmd_path && -x _ ) {
+        if ( $cmd_path &&  -f $cmd_path && -x _ ) {
             return $cmd_path;
         }
     }

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list