Commit 299065ca authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Fix hook links and run test in the pre-commit hook

parent 9f2e4238
......@@ -54,7 +54,7 @@ cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
code .git/hooks/pre-commit
```
- Paste the contents of (hook/pre-commit.sh)[hook/pre-commit.sh] into `.git/hooks/pre-commit`.
- Paste the contents of [hook/pre-commit.sh](hook/pre-commit.sh) into `.git/hooks/pre-commit`.
Observe commit diffs to see Office file changes in the XML and TXT files.
......@@ -74,7 +74,7 @@ This repository is licensed under the [MIT license](LICENSE.md).
## Contributing
Use (hook/pre-commit-development.sh)[hook/pre-commit-development.sh] when contributing to this repository to also run tests.
Use [hook/pre-commit-development.sh](hook/pre-commit-development.sh) when contributing to this repository to also run tests.
See [planned development](doc/tasks.md).
......
......@@ -30,12 +30,6 @@
- Run Git commit
- Verify extraction directory has been created and text file matches
## Make tests run on each commit in this repo
Flesh out `hook/pre-commit-development.sh` to invoke both scripts.
## Utilize GitHub/GitLab CI on top of the pre-commit hook
This is to capture online editor commits.
## Fix `README.md` MarkDown links to hooks and use inline blocks for their names
......@@ -3,9 +3,11 @@
#!/usr/bin/env bash
if [ ! -z "command -v powershell" ]
then
powershell cmd/run-tests.ps1
powershell cmd/version-office-files.ps1
elif [ ! -z "command -v pwsh" ]
then
pwsh cmd/run-tests.ps1
pwsh cmd/version-office-files.ps1
else
echo "PowerShell is not installed."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment