aports/main/txt2man/fixbashism.patch
2014-02-27 13:49:25 +00:00

15 lines
380 B
Diff

--- ./bookman.orig
+++ ./bookman
@@ -83,9 +83,9 @@
shift $(($OPTIND - 1))
date=${date:-$(date +'%d %B %Y')}
-[[ $1 ]] || set -- $(while read; do echo $REPLY; done)
+[ -n "$1" ] || set -- $(while read REPLY; do echo $REPLY; done)
-[[ $outfile ]] && post="$post >$outfile"
+[ -n "$outfile" ] && post="$post >$outfile"
{
# Compute table of content from postscript output.