move template filler to own directory
This commit is contained in:
parent
1091971637
commit
85e33cf380
|
@ -4,6 +4,8 @@ set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
PROJECT_ROOT=$(dirname $(dirname $(readlink -f $0)))
|
||||||
|
|
||||||
echo "What is your python module name?"
|
echo "What is your python module name?"
|
||||||
read MODULE_NAME
|
read MODULE_NAME
|
||||||
|
|
||||||
|
@ -27,7 +29,7 @@ echo "What is a one-liner describing the project?"
|
||||||
read SHORT_DESCRIPTION
|
read SHORT_DESCRIPTION
|
||||||
|
|
||||||
_replace() {
|
_replace() {
|
||||||
local find_cmd=(find . ! -perm -u=x ! -path '*/.git/*' -type f)
|
local find_cmd=(find "$PROJECT_ROOT" ! -perm -u=x ! -path '*/.git/*' -type f)
|
||||||
|
|
||||||
if [[ $(uname) == Darwin ]]; then
|
if [[ $(uname) == Darwin ]]; then
|
||||||
"${find_cmd[@]}" -exec sed -i '' "$1" {} +
|
"${find_cmd[@]}" -exec sed -i '' "$1" {} +
|
Loading…
Reference in New Issue
Block a user