'grep -q' is not portable -> don't use it.
This commit is contained in:
parent
17afa80afd
commit
533f0b5d48
|
@ -448,7 +448,7 @@ You will need to package the files:
|
|||
|
||||
The post-install script:
|
||||
|
||||
if ! grep -q /usr/X11R6/lib/wine /etc/ld.so.conf; then
|
||||
if ! grep /usr/X11R6/lib/wine /etc/ld.so.conf >/dev/null; then
|
||||
echo "/usr/X11R6/lib/wine" >> /etc/ld.so.conf
|
||||
fi
|
||||
/sbin/ldconfig
|
||||
|
|
|
@ -274,7 +274,7 @@ then {
|
|||
# to our sucommand string
|
||||
if [ -f /etc/ld.so.conf ]
|
||||
then
|
||||
if ! grep -qs "$libdir" /etc/ld.so.conf
|
||||
if ! grep -s "$libdir" /etc/ld.so.conf >/dev/null 2>&1
|
||||
then {
|
||||
echo
|
||||
echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added"
|
||||
|
|
Loading…
Reference in New Issue