View | Details | Raw Unified | Return to bug 34653
Collapse All | Expand All

(-)a/debian/scripts/koha-foreach (-4 / +4 lines)
Lines 51-56 do Link Here
51
    shift
51
    shift
52
done
52
done
53
53
54
rv=0
54
for name in $(koha-list $listopts)
55
for name in $(koha-list $listopts)
55
do
56
do
56
    # Replace the __instancename__ placeholder for the instance name (Bug 8566)
57
    # Replace the __instancename__ placeholder for the instance name (Bug 8566)
Lines 64-71 do Link Here
64
        if koha-shell ${name} -c "${cmd}"; then
65
        if koha-shell ${name} -c "${cmd}"; then
65
            : #noop
66
            : #noop
66
        else
67
        else
67
            rv=$?
68
            echo "${name}: $? status returned by \"${cmd}\""
68
            echo "${name}: $rv status returned by \"${cmd}\""
69
            rv=1
69
        fi
70
        fi
70
71
71
        # Go back to the original dir if required
72
        # Go back to the original dir if required
Lines 73-76 do Link Here
73
    fi
74
    fi
74
done
75
done
75
76
76
exit 0
77
exit $rv
77
- 

Return to bug 34653