He went to the X

repeat() { while :; do $@ && return; sleep 10; done }

echo start getting installed plugins
Installed = `Extensions code --list- 2 > & . 1 `
 echo acquisition is completed all of the plug has been installed

tryin() {
    Ison = $ ( echo  " $ Installed " | grep $ 1 )
     IF [[ " $ Ison " ! = "" ]]
     the then 
        echo  " a little early Du'an finished, $ 1 " 
        return 0 
    fi

    echo  " is the test of $ 1 " 
    msg = `code - install -extension $ 1  2 > & 1 `
     echo  " try $ 1 results: $ msg " 
    the Result = $ ( echo  " $ msg " | grep -P " the TIME OUT * |. .. getaddrinfo * * the nOT FOUND " )
     IF [[ " $ the Result " ! = " " ]]
     the then 
        echo  " network is not good, try again: $ 1 "
        return 1
    else
        echo "Should be installed over: $. 1 " 
        return 0 
    Fi 
}

 

Guess you like

Origin www.cnblogs.com/Searchor/p/11221168.html