bashscript added branch functionality to ensureonly run on ubuntu