Comment 4 for bug 1400357

Revision history for this message
zebul666 (zebul666) wrote :

line 20 of /usr/share/upstart/sessions/update-notifier-cds.conf is
    if [ $CDTYPE > 0 ]

I don't know much about dash but for bash I would have written
    if [ $CDTYPE -gt 0 ]

also in dash man page:
[...]
s1 > s2 True if string s1 comes after s2 based on the ASCII value of their characters.
[...]
n1 -gt n2 True if the integer n1 is algebraically greater than the integer n2.

as CDTYPE is an integer it's the second form.

I tried changing ">" to "-gt" in the file /usr/share/upstart/sessions/update-notifier-cds.conf and
it fixed it ! no zero file anymore !