Merge pull request #276 from chriswells0/render-message
Display message about file/directory being rendered.
This commit is contained in:
@@ -97,8 +97,11 @@ get_arg_value() {
|
|||||||
render() {
|
render() {
|
||||||
_file_path="${1}/${2}"
|
_file_path="${1}/${2}"
|
||||||
if [ -d "${_file_path}" ]; then # Recursively render every file in this directory. -- cwells
|
if [ -d "${_file_path}" ]; then # Recursively render every file in this directory. -- cwells
|
||||||
|
echo "Rendering Directory: ${_file_path}"
|
||||||
|
find "${_file_path}" \( -type d -name .git -prune \) -o -type f
|
||||||
find "${_file_path}" \( -type d -name .git -prune \) -o -type f -print0 | $(eval "xargs -0 sed -i '' ${ARG_REPLACEMENTS}")
|
find "${_file_path}" \( -type d -name .git -prune \) -o -type f -print0 | $(eval "xargs -0 sed -i '' ${ARG_REPLACEMENTS}")
|
||||||
elif [ -f "${_file_path}" ]; then
|
elif [ -f "${_file_path}" ]; then
|
||||||
|
echo "Rendering File: ${_file_path}"
|
||||||
eval "sed -i '' ${ARG_REPLACEMENTS} '${_file_path}'"
|
eval "sed -i '' ${ARG_REPLACEMENTS} '${_file_path}'"
|
||||||
else
|
else
|
||||||
warn "Path not found for render: ${2}"
|
warn "Path not found for render: ${2}"
|
||||||
|
|||||||
Reference in New Issue
Block a user