I just installed Git bash in order to run a UNIX command. I am trying to recreate a project starter which is using UNIX; it seemed there was no way for Windows to run a "grep" command without using something like Git bash.
I CD into the project folder directory
mboyl@DESKTOP-8R019P7 MINGW64 ~/lei_broker (master)
Then I run my command
$ heroku config:set SANITY_READ_TOKEN=$(grep SANITY_READ_TOKEN .env.development)
And am met with the error
'C:\\Program' is not recognized as an internal or external command, operable program or batch file.
What is going on here? 'C:\\Program' is not included in my command.
My initial troubleshooting has recommended using a shell besides Git bash or setting an environment variable. My technical chops are limited, so if there is a simple Linux/UNIX syntax error I am making, please advise.
由于我需要 50 个代表,因此作为答案发布。虽然我不知道 .env.development 文件中的内容,但为什么不用单引号包裹所有 Windows 路径并尝试?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.