#!/bin/bash local_pwd=$(pwd) echo "local path is $local_pwd" cd $local_pwd rm app_softdevice.hex mergehex.exe --merge s130_nrf51_2.0.0_softdevice.hex nrf51422_xxac_s130.hex --output app_softdevice.hex