-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
I have the following code example in my presentation
#!/bin/bash -x
REPOS=`ls -d /mnt/revo/jenkins/jobs/Puppet/workspace/*/`;
for repo in $REPOS
do
cd $repo;
echo $repo;
remote=$(git ls-remote -h origin master | awk '{print $1}')
local=$(git rev-parse HEAD)
printf "Local : %s\nRemote: %s\n" $local $remote
if [ $local == $remote ]; then
echo "Commits match."
else
echo "Changes available => run test."
exit 1;
fi
cd ..
done
{: lang="sh"}
but the highlighting is not working. I tried it with bash
or shell
but none of them is working. Ruby related code is working fine.
Metadata
Metadata
Assignees
Labels
No labels