dev-cmd/sh: tweak named args syntax.

This commit is contained in:
Mike McQuaid 2020-08-27 16:48:33 +01:00 committed by Maxim Belkin
parent 28c43f1afc
commit 483fbb7fe4

View File

@ -46,7 +46,7 @@ module Homebrew
if args.cmd.present?
safe_system(ENV["SHELL"], "-c", args.cmd)
elsif args.named.present?
safe_system(ENV["SHELL"], args.named[0])
safe_system(ENV["SHELL"], args.named.first)
else
subshell = if ENV["SHELL"].include?("zsh")
"PS1='brew %B%F{green}%~%f%b$ ' #{ENV["SHELL"]} -d"