mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
MFC r197625: Fix using lp(1) without the new -t option after r194171.
Approved by: re (kib)
This commit is contained in:
parent
c8c92b5491
commit
815fc7356d
1 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ do
|
|||
s) # (silent option)
|
||||
: ;;
|
||||
t) # title for banner page
|
||||
title="-J${OPTARG}";;
|
||||
title="${OPTARG}";;
|
||||
*) # (error msg printed by getopts)
|
||||
exit 2;;
|
||||
esac
|
||||
|
|
@ -78,4 +78,4 @@ done
|
|||
|
||||
shift $(($OPTIND - 1))
|
||||
|
||||
exec /usr/bin/lpr "-P${dest}" ${symlink} ${ncopies} ${mailafter} "${title}" "$@"
|
||||
exec /usr/bin/lpr "-P${dest}" ${symlink} ${ncopies} ${mailafter} ${title:+-J"${title}"} "$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue