A 15-year-old boy who was out on bail when he slashed a man with a machete in a terrifying armed robbery will be locked up for three more months to protect the community from further violent attacks.