Fix my rusty bash fu