summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xacid/acid3
1 files changed, 1 insertions, 2 deletions
diff --git a/acid/acid b/acid/acid
index 9b01fb5..a134d34 100755
--- a/acid/acid
+++ b/acid/acid
@@ -45,14 +45,13 @@ update() {
forceopt="--force-self"
selfopt="--self"
- [ -z "$1" ] && reason="event" || reason="maint"
-
for line in "${CYCHE_SERVICES[@]}"; do
read -r -a arr <<< "$line"
hash=$(acid-source ${arr[@]:0:3} 2>"$CYCHE_TMP_LOG")
res=$?
if [ $res -ne 0 ] || [ "$1" == "$forceopt" ]; then
+ [ $res -eq 1 ] && reason="event" || reason="maint"
job=$(make_log "$hash" "$reason" "${arr[0]}")
logdir="$CYCHE_LOG_DIR/$job"
log="$logdir/log"