sgit-inspect 284 B

123456789101112
  1. #! /bin/bash
  2. [[ $# -ne 1 ]] && echo "Usage: $0 FILE
  3. Like sgit-cat, but looks inside a raw object file given as an argument,
  4. instead of finding the file via its associated sha1sum." && exit 1
  5. loc="$1"
  6. [[ ! -f "$1" ]] && echo "File $loc not found." && exit 1
  7. openssl zlib -d < $loc