mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
Fix: change replstr into variable in forgit::ignore::get
Former-commit-id: b3b5110723
This commit is contained in:
parent
c9869c2167
commit
f648d171cc
|
|
@ -160,7 +160,7 @@ __forgit_ignore_update() {
|
|||
__forgit_ignore_get() {
|
||||
mkdir -p $FORGIT_GI_CACHE
|
||||
for item in "$@"; do
|
||||
cat "$FORGIT_GI_CACHE/$item" 2>/dev/null || (curl -sL https://www.gitignore.io/api/{} |tee "$FORGIT_GI_CACHE/$item")
|
||||
cat "$FORGIT_GI_CACHE/$item" 2>/dev/null || (curl -sL "https://www.gitignore.io/api/$item" |tee "$FORGIT_GI_CACHE/$item")
|
||||
done
|
||||
}
|
||||
__forgit_ignore_clean() {
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ forgit::ignore::update() {
|
|||
forgit::ignore::get() {
|
||||
mkdir -p $FORGIT_GI_CACHE
|
||||
for item in "$@"; do
|
||||
cat "$FORGIT_GI_CACHE/$item" 2>/dev/null || (curl -sL https://www.gitignore.io/api/{} |tee "$FORGIT_GI_CACHE/$item")
|
||||
cat "$FORGIT_GI_CACHE/$item" 2>/dev/null || (curl -sL "https://www.gitignore.io/api/$item" |tee "$FORGIT_GI_CACHE/$item")
|
||||
done
|
||||
}
|
||||
forgit::ignore::clean() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue