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