Skip to content

Commit

Permalink
Comprueba si existe el array, closes #261
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Sep 20, 2023
1 parent e40888f commit cc4f588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/git-iv
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ eval {
} or die "Aparentemente, no estás en un repositorio";

my @args = @ARGV;
die( print_usage ()) if $args[0] eq '--help' ;
die( print_usage ()) if @args && $args[0] eq '--help' ;

if ( $subcommand eq "objetivo" ) {
$repo->command( "checkout", "-b", "Objetivo-" . $args[0]);
Expand Down

0 comments on commit cc4f588

Please sign in to comment.