githubschool / githubschool/Sept-5
touch in PowerShell script
- Dominant language
- HTML
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
This script: https://githubtraining.github.io/training-manual/#/18_create_local_repo?id=powershell uses the `touch` command which PowerShell doesn't recognise.
````
for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git commit -m "adding file$d.md"; }
>>
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file1.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file2.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file3.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file4.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file5.md' did not match any files
On branch master
nothing to commit, working tree clean
touch : The term 'touch' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:30
+ for ($d=1; $d -le 6; $d++) { touch file$d.md; git add file$d.md; git ...
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (touch:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
fatal: pathspec 'file6.md' did not match any files
On branch master
nothing to commit, working tree clean
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.