Skip to content

Commit

Permalink
Install newer version of box. Avoid warning when running phar. (#4978)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Jan 4, 2022
1 parent 5aa8d13 commit c610f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
},
"scripts": {
"phar:install-tools": "curl -LSs https://box-project.github.io/box2/installer.php | php",
"phar:install-tools": "curl -L https://github.com/box-project/box/releases/download/3.14.0/box.phar --output box.phar",
"phar:build": "php box.phar compile",
"lint": [
"find includes -name '*.inc' -print0 | xargs -0 -n1 php -l",
Expand Down
2 changes: 1 addition & 1 deletion includes/command.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ function drush_adjust_args_if_shebang_script(&$args) {
array_splice($args, $base_arg_number, 0, array('php-script'));
drush_set_context('DRUSH_SHEBANG_SCRIPT', TRUE);
}
elseif (((strpos($args[$base_arg_number], ' ') !== FALSE) || (!ctype_alnum($args[$base_arg_number][0]))) && (_drush_is_drush_shebang_script($args[$base_arg_number + 1]))) {
elseif (((strpos($args[$base_arg_number], ' ') !== FALSE) || (!ctype_alnum($args[$base_arg_number][0]))) && (($base_arg_number + 1 < count($args)) && (_drush_is_drush_shebang_script($args[$base_arg_number + 1])))) {
// If $args[2] is a drush "shebang" script, we will insert
// the space-exploded $arg[1] in place of $arg[1], so the
// command line args become:
Expand Down

0 comments on commit c610f05

Please sign in to comment.