import re


def get_run_command(value):
    """A general function to return the command line that created a layer
    given the value of some metadata key from the container image"""
    # we check for '/bin/sh -c' in the value
    if '/bin/sh -c' in value:
        return re.sub('/bin/sh -c ', '', value).strip()
    return ''