get promote.sh working with bash