How to check if a complicated command is valid in bash?

前端 未结 0 1194
生来不讨喜
生来不讨喜 2020-12-11 16:11

I need the user to input a jar file location Target.jar as the parameter of a bash function.

I first try

if ! command -v java -jar &1          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题