my $script = $opts->{script};
return if !$script;
- if (!-f $script) {
- die "Error: The hook script '$script' does not exist.\n";
- }
-
- if (!-x $script) {
- die "Error: The hook script '$script' is not executable.\n";
- }
+ die "Error: The hook script '$script' does not exist.\n" if ! -f $script;
+ die "Error: The hook script '$script' is not executable.\n" if ! -x $script;
my $cmd = [$script, $phase];