Update using bash arrays