Skip to content

the "${staged}" arg only returns empty #91

Answered by alirezanet
foxmcloud555 asked this question in Q&A
Discussion options

You must be logged in to vote

Today, I encountered the same issue on my Linux machine. To echo staged files in Linux, and likely on Mac as well, you should define the task as follows:

      {
             "tasks": [
                 {
                     "name": "Test",
                     "command": "echo",
                     "args": [ "${staged}" ]
                 }
             ]
         }

So basically we don't need bash -c

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alirezanet
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alirezanet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants