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)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Michal Ruprich
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  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:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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):
quagga-1.2.1-1.fc26.x86_64

How reproducible:
Always

Steps to Reproduce:
1. dnf install quagga
2.
3.

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.