diff options
author | Parabola git <git@parabola.nu> | 2020-03-12 11:00:02 +0000 |
---|---|---|
committer | Parabola git <git@parabola.nu> | 2020-03-12 11:00:02 +0000 |
commit | 8a9064c91ab67db4e87551739fc209ed1afaf335 (patch) | |
tree | fed62657f539e31e86095b67b2c1a29ead8c5336 | |
parent | c67ec44be4d9859345d039126411bb0261e2528f (diff) |
Update from cron
-rwxr-xr-x | abslibre/blacklist.git/hooks/pre-receive | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/abslibre/blacklist.git/hooks/pre-receive b/abslibre/blacklist.git/hooks/pre-receive index e952cda..6228430 100755 --- a/abslibre/blacklist.git/hooks/pre-receive +++ b/abslibre/blacklist.git/hooks/pre-receive @@ -9,7 +9,7 @@ ## constants ## readonly LOG_BLACKLIST_GIT_HOOK=1 -readonly LOG_DIR=/var/log/blacklist-validate +readonly LOG_DIR=/var/log/blacklist readonly SHA_REGEX='^([0-9a-f]{40})$' @@ -18,8 +18,9 @@ readonly SHA_REGEX='^([0-9a-f]{40})$' LogFile() # (ref) { local ref=$1 + local log_file=${LOG_DIR}/validate-${ref} - echo ${LOG_DIR}/validate-${ref} + echo ${log_file} } LogParseRefData() # (ref_data prev_sha curr_sha ref_file repo ref is_deletion) |