-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/start using docker entrypoint script (#27)
* Feat/start-using-docker-entrypoint-script according to https://github.com/docker-library/official-images\#consistency * bump version & add changelog entry
- Loading branch information
1 parent
0bdc13c
commit 2724b32
Showing
4 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# this if will check if the first argument is a flag | ||
if [ "$#" -eq 0 ] || [ "${1#-}" != "$1" ]; then | ||
set -- gordian "$@" | ||
fi | ||
|
||
# check for the expected command | ||
if [ "$1" = 'gordian' ]; then | ||
exec gordian "$@" | ||
fi | ||
|
||
# else default to run whatever the user wanted like "bash" or "sh" | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
setup_reqs = ['pytest', 'pytest-cov', 'pytest-runner', 'flake8'] | ||
setuptools.setup( | ||
name="gordian", | ||
version="2.1.1", | ||
version="2.1.2", | ||
author="Intuit", | ||
author_email="[email protected]", | ||
description="A tool to search and replace files in a Git repo", | ||
|