• Kirill Kolyshkin's avatar
    scripts/build/extract-deb-pkg: fix/improve · 5b158804
    Kirill Kolyshkin authored
    Numerous improvement to extract-deb-pkg, in no particular order:
    
     * Use bash
     * More strict error checking (set -u -o pipefail)
     * Print error message if target dir exists
     * Check number of arguments, provide usage info
     * Separate mirror to a variable for easier changing
     * Use mirrors.kernel.org
     * Use https and check cert with curl
     * Make curl silent
     * Use zgrep instead of gunzip | grep
     * Error out with a message in case more than 1 package was found
     * Do not create a target directory before we need it
     * Fix shellcheck warnings (way too many to mention)
     * ...
     * PROFIT!!!111
    Signed-off-by: 's avatarKir Kolyshkin <kolyshkin@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    5b158804
extract-deb-pkg 650 Bytes