apt-feed-logbuch.sh
changeset 5 34214775a77a
parent 0 117aabc28c6c
child 9 b9f68563d603
equal deleted inserted replaced
4:bdc9a8899333 5:34214775a77a
    17 
    17 
    18 if test -f /etc/default/ius.upgrade.conf; then
    18 if test -f /etc/default/ius.upgrade.conf; then
    19     . /etc/default/ius.upgrade.conf
    19     . /etc/default/ius.upgrade.conf
    20 fi
    20 fi
    21 
    21 
       
    22 if ! test -f "$LINES_COUNT"; then
       
    23     echo "$0: $LINES_COUNT is missing" >&2
       
    24     exit 0
       
    25 fi
       
    26 
       
    27 if ! test -s "$LINES_COUNT"; then
       
    28     echo "$0: $LINES_COUNT is empty" >&2
       
    29     exit 0
       
    30 fi
       
    31 
    22 APT_CMD=$(ps -p $1 -o args=)
    32 APT_CMD=$(ps -p $1 -o args=)
    23 APT_TMP="/tmp/$$.tmp"
    33 APT_TMP="/tmp/$$.tmp"
    24 APT_OUT="/tmp/$$.out"
    34 APT_OUT="/tmp/$$.out"
    25 
    35 
    26 if [ $APT_LOG -nt $LINES_COUNT ]; then
    36 if [ $APT_LOG -nt $LINES_COUNT ]; then