• Academy Platform - E01-05 - [062/114] - "Academy Platform - E01-E05 - 1080p.part61.rar" yEnc (109/137)

    From kaizen@kaizen@myemail.com (kaizen) to alt.os.linux.ubuntu on Monday, February 17, 2020 20:40:35
    From Newsgroup: alt.os.linux.ubuntu

    On 2014-10-10, Bit Twister <BitTwister@mouse-potato.com> wrote:
    On Thu, 09 Oct 2014 18:49:48 -0500, Marek Novotny wrote:

    It's this part:

    # Error test for Screen Dimensions
    ErrorTest="$(xdpyinfo 2>&1 > /dev/null)"
    if [[ $ErrorTest != "" ]];then
    ErrorCondition=$(echo "$ErrorTest" | grep -c resolution)
    if [[ $ErrorCondition == 0 ]];then
    ErrorTest="Error"
    fi
    fi

    Again, look at the following:

    $ ErrorTest="$(xdpyinfo 2>&1 > /dev/null)"
    $ echo \'$ErrorTest\'
    ''

    Yet we see
    $ xdpyinfo | wc -l
    647
    lines returned and a test for resolution shows
    $ xdpyinfo | grep -c resolution
    1

    I suggest the if test just needs to check for resolution.

    oK,

    Sorry about that.

    Uploaded the update: https://app.box.com/s/8zgcuqw5oi14s7m15ks6

    # Screen Dimensions
    TestX=$(xdpyinfo 2> /dev/null | grep -c resolution)
    if (( $TestX >= 1 )); then
    ScreenDimensions
    printf "%s\n" "Screen Dimensions"
    FWLine
    printf "%s\n" " Dimensions: $Dimensions"
    printf "%s\n\n" " Resolution: $Resolution"
    fi

    --
    Marek Novotny
    A member of the Linux Foundation
    http://www.linuxfoundation.org
    git with the program
    --- Synchronet 3.18a-Linux NewsLink 1.113