Browse Source

Add more precise test for eventid when rollbacking, fix #7

master
LecygneNoir 5 years ago
parent
commit
3eb71cafd2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      rollback_module.sh

+ 2
- 1
rollback_module.sh View File

@ -90,7 +90,8 @@ function rebuild_txt {
echo "${eventArray[${index}]}" >> "${TXT}"
for key in "${sorted[@]}"; do
# We work only on key related to our current event
if [[ "${key}" == "${index}"* ]]; then
# We need to compare key to the event id in index, ie the first part of the key (see #7)
if [[ "${key/.*/}" == "${index}" ]]; then
eventID="${index}"
nodeID="$(awk -F'.' '{print $2}' <<< ${key})"
type="$(awk -F'.' '{print $3}' <<< ${key})"

Loading…
Cancel
Save