Bug 1462426 - Installing with dnf produces error /var/tmp/rpm-tmp.jMe0EE: line 44 [: too many arguments
Installing with dnf produces error /var/tmp/rpm-tmp.jMe0EE: line 44 [: too ma...
Status: NEW
Product: Fedora
Classification: Fedora
Component: quagga (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Michal Ruprich
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-06-17 10:45 EDT by Quentin Armitage
Modified: 2017-06-17 10:45 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Quentin Armitage 2017-06-17 10:45:33 EDT
Description of problem:
See summary

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. dnf install quagga

Actual results:
Reports error: /var/tmp/rpm-tmp.jMe0EE: line 44 [: too many arguments

Expected results:
No errors

Additional info:
The test 'if [ -f /usr/share/info/quagga.inf* ]' is failing since there are three files which match the wildcard. This test is used in both the postinstall and postuninstall scriptlets.

Perhaps the following would be better:
ls %{_infodir}/%{name}.inf* 2>/dev/null
if [ $? -eq 0 ]; then

Note You need to log in before you can comment on or make changes to this bug.