# It jumps through hoops with `|| true' despite not using `set -e'.
offset () {
- sed -e '/./s/^/ /'
+ sed -e '/./s/^/ /' "$@"
}
header () {
; do
test -f $f || continue
header $f
- cat $f
+ offset $f
break
done
(pkg info 2>/dev/null | offset) || true
(pkg_info 2>/dev/null | offset) || true
;;
-
- Linux)
- header Linux distribution:
- (lsb_release -a 2>&1 | offset) || true
esac