[Bug 409632] New: [Novell:NTS/ntsutils] Disk space check fails on multiple lines
https://bugzilla.novell.com/show_bug.cgi?id=409632 Summary: [Novell:NTS/ntsutils] Disk space check fails on multiple lines Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software AssignedTo: jrecord@novell.com ReportedBy: jrecord@novell.com QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: Development The follow results: Used Disk Space ./schealth: line 328: [: -ge: unary operator expected /schealth: line 330: [: -ge: unary operator expected /schealth: line 328: [: /: integer expression expected /schealth: line 330: [: /: integer expression expected
From this source:
#==[ Command ]======================================# # /bin/df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/system-root 66G 2.0G 64G 3% / udev 1.7G 96K 1.7G 1% /dev /dev/sda1 69M 8.0M 57M 13% /boot schealth expects the disk information to be on only one line, not multiple lines, causing the free disk space percent value to be unassigned when compared. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409632 Jason Record <jrecord@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409632 Jason Record <jrecord@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409632 User jrecord@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=409632#c1 Jason Record <jrecord@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from Jason Record <jrecord@novell.com> 2008-07-16 15:24:28 MDT --- Fixed checked in. Index: trunk/scripts/schealth =================================================================== --- trunk/scripts/schealth (revision 26) +++ trunk/scripts/schealth (revision 27) @@ -1,5 +1,5 @@ #!/bin/bash -SVER=0.92.6 +SVER=0.95.1 ############################################################################## # schealth - Supportconfig Health Check Report @@ -333,6 +333,8 @@ DISKS_YEL="" get_section "df -h" | sed -e '1d' >> $DISK_TMP + # If the line starts with a space, join it to the previous line + sed -i -e :a -e '$!N;s/\n / /;ta' -e 'P;D' $DISK_TMP while read DISK_DATA do DISK=$(echo "$DISK_DATA" | awk '{print $5}' | sed -e 's/%//g') -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=409632 User jrecord@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=409632#c2 Jason Record <jrecord@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Jason Record <jrecord@novell.com> 2008-08-01 09:30:11 MDT --- Closed. Released through OBS http://en.opensuse.org/NTSutils -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com