black/action/entrypoint.sh
Hadi Alqattan 4d6a84a829
Allow black's Github action params overriding. (#1755)
* Allow default params overriding.

* Update: docs and action.yaml.

* The second contirbution, add my name to authors.md

* Correct docs `with.args` example.

* Just to rerun the Travis jobs.

* chmod 755
2020-10-18 14:24:33 -07:00

11 lines
160 B
Bash
Executable File

#!/bin/sh
set -e
if [ $# -eq 0 ]; then
# Default (if no args provided).
sh -c "black . --check --diff"
else
# Custom args.
sh -c "black $*"
fi