Bug 258541

Summary: Anacron reports run-parts error
Product: [Fedora] Fedora Reporter: Carl Preddy <cpreddy>
Component: crontabsAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-28 06:59:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Carl Preddy 2007-08-28 00:06:09 UTC
Description of problem:
anacron-2.3-53.fc8 mails an error message every night that concludes with 

/usr/bin/run-parts: line 5: [: ==: unary operator expected

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

How reproducible: like clockwork

Steps to Reproduce: none; seems to be installed this way 
Actual results: error email from anacron to root 
Expected results: not that 

Additional info:
Line 5 of /usr/bin/run-parts reads
[ $AUX1 == $AUX2 ] || exit 0
I believe the intended construct should be 
[ $AUX1 == $AUX2 ] && exit 0

Comment 1 Marcela Mašláňová 2007-08-28 06:59:39 UTC
Correct is [ "$AUX1" == $AUX2 ] || exit 0
That means if they are not the same, then don't run anything.

*** This bug has been marked as a duplicate of 254220 ***