From cc4f588e0b87c2e27b654e6d1cf3536f655b6cb5 Mon Sep 17 00:00:00 2001 From: JJ Merelo Date: Wed, 20 Sep 2023 09:12:47 +0200 Subject: [PATCH] Comprueba si existe el array, closes #261 --- scripts/git-iv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git-iv b/scripts/git-iv index 5ca2ab66..5f0b179e 100755 --- a/scripts/git-iv +++ b/scripts/git-iv @@ -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]);