mirror of
https://github.com/firehol/firehol.git
synced 2024-06-29 18:32:16 +00:00
fix for adding ipset files to git
This commit is contained in:
parent
eaced586bd
commit
a51bdc753b
@ -461,6 +461,7 @@ check_git_committed() {
|
|||||||
git ls-files "${1}" --error-unmatch >/dev/null 2>&1
|
git ls-files "${1}" --error-unmatch >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
|
echo >&2 "Adding '${1}' to git"
|
||||||
git add "${1}"
|
git add "${1}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -1923,7 +1924,7 @@ EOFHEADER
|
|||||||
if [ -d .git ]
|
if [ -d .git ]
|
||||||
then
|
then
|
||||||
echo >"${setinfo}" "[${ipset}](${WEB_URL}${ipset})|${info}|${ipv} hash:${hash}|${quantity}|`if [ ! -z "${url}" ]; then echo "updated every $(mins_to_text ${mins}) from [this link](${url})"; fi`"
|
echo >"${setinfo}" "[${ipset}](${WEB_URL}${ipset})|${info}|${ipv} hash:${hash}|${quantity}|`if [ ! -z "${url}" ]; then echo "updated every $(mins_to_text ${mins}) from [this link](${url})"; fi`"
|
||||||
[ ! -z "${DO_NOT_REDISTRIBUTE[${ipset}]}" ] && check_git_committed "${dst}"
|
[ -z "${DO_NOT_REDISTRIBUTE[${ipset}]}" ] && check_git_committed "${dst}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cache_save
|
cache_save
|
||||||
|
Loading…
Reference in New Issue
Block a user