mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-15 17:56:17 -04:00
Fix a bug which ignoring the files with link type.
This commit is contained in:
parent
947954ea84
commit
babb299206
|
|
@ -143,7 +143,7 @@ forgit::ignore::update() {
|
|||
forgit::ignore::get() {
|
||||
local item filename header
|
||||
for item in "$@"; do
|
||||
if filename=$(find "$FORGIT_GI_REPO/templates" -type f -iname "${item}.gitignore" -print -quit); then
|
||||
if filename=$(find -L "$FORGIT_GI_REPO/templates" -type f -iname "${item}.gitignore" -print -quit); then
|
||||
[[ -z "$filename" ]] && forgit::warn "No gitignore template found for '$item'." && continue
|
||||
header="${filename##*/}" && header="${header%.gitignore}"
|
||||
echo "### $header" && cat "$filename" && echo
|
||||
|
|
|
|||
Loading…
Reference in a new issue