From 99cda3db69cf0ff293fc26ec637d4ac036733ff3 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Thu, 1 Feb 2024 19:46:44 -0400 Subject: [PATCH] apkbuild-cpan.in: fix uninitialized value when running with no parameters by applying Celeste's suggested fix --- apkbuild-cpan.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in index 196d821..00b9775 100755 --- a/apkbuild-cpan.in +++ b/apkbuild-cpan.in @@ -785,7 +785,7 @@ my $user_abuild_conf = read_assignments_from_file( $ENV{"HOME"} . "/.abuild/abuild.conf" ); $packager = $user_abuild_conf->{PACKAGER} if $user_abuild_conf->{PACKAGER}; -my $command = $ARGV[0]; +my $command = $ARGV[0] // ''; if ( $command eq "create" ) { my $module = $ARGV[1];