#!/bin/bash
cd /cron/sherpa-prod
FULL_SHA=$(git submodule status sherpa | awk '{ print $1 }' | sed 's/^-//')
echo ${FULL_SHA::7}

#!/bin/bash
cd /cron/sherpa-prod
FULL_SHA=$(git submodule status sherpa | awk '{ print $1 }' | sed 's/^[-+U]//')
echo ${FULL_SHA::7}

Handle all submodule status prefixes
Handle all submodule status prefixes
