Skip to content

Highlighting shell scripts as code examples #28

@wikimatze

Description

@wikimatze

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions