inline bash script needed too much escaping - reverting