code: def make_executable(path, fatal=True):
      
      if is_executable(path):
          return 0
  
      if is_dryrun():
          LOG.debug("Would make %s executable", short(path))
          return 1
  
      if not os.path.exists(path):
          return abort("%s does not exist, can't make it executable", short(path), fatal=(fatal, -1))
  
      try:
          os.chmod(path, 0o755)  # nosec
          return 1
  
      except Exception as e:
          return abort("Can't chmod %s: %s", short(path), e, fatal=(fatal, -1))
docs: :param str|None path: chmod file with 'path' as executable
      :param bool|None fatal: Abort execution on failure if True
      :return int: 1 if effectively done, 0 if no-op, -1 on failure