我有3个WSO2 ESB 4.8.1聚集:1个经理和2个工人。
直到现在一切都进展顺利,同步起诉SVN将经理人工件的每一次变化转发给工人。
现在我正面临一个问题:每当我更改管理器上的工件时......在尝试更新时,工作人员会抓住这个例外:
#!/bin/bash
result() {
i=0
echo there are ${#arrayName[@]} options selected
while (( i < ${#arrayName[@]} ))
do
echo $i ${arrayName[$i]}
i=$(( $i + 1 ))
done
}
cmd=(dialog --separate-output --keep-tite --checklist "Select options:" 22 76 4)
options=(1 "Johnny" off
2 "Ben" off
3 "Hillary" off
4 "User Input" off
)
choice=$("${cmd[@]}" "${options[@]}" 2>&1 > /dev/tty )
for answer in $choice
do
# make decsion
case $answer in
1)
arrayNum=${#arrayName[@]} # arrayNum is the amount of items in arrayName
arrayName[$arrayNum]="Johnny" # if selected put Johnny in arrayName
;;
2)
arrayNum=${#arrayName[@]} # If johnny is selected ${#arrayName[@]} outputs 1 if not selected 0
arrayName[$arrayNum]="Ben" # If selected add to array
;;
3)
arrayNum=${#arrayName[@]}
arrayName[$arrayNum]="Hillary"
;;
4) # If User Input is selected create an new dialog inputbox
user_input=$(\
dialog --keep-tite --title "Enter Your Name" \
--inputbox "Enter name:" 8 40 \
3>&1 1>&2 2>&3 3>&- \
)
arrayNum=${#arrayName[@]}
arrayName[$arrayNum]="$user_input"
;;
esac
done
result
发生了什么事?