fetch-xtools.sh (424B)
1#!/bin/sh 2# 3# fetch-xtools.sh 4 5TAR=tar 6command -v bsdtar >/dev/null && TAR=bsdtar 7URL="https://github.com/leahneukirchen/xtools/archive/master.tar.gz" 8FILE="xtools.tar.gz" 9 10mkdir -p /tmp/bin 11 12/bin/echo -e '\x1b[32mInstalling xtools...\x1b[0m' 13if command -v wget >/dev/null; then 14 wget -q -O "$FILE" "$URL" || exit 1 15else 16 xbps-fetch -o "$FILE" "$URL" || exit 1 17fi 18 19$TAR xf "$FILE" -C /tmp/bin --strip-components=1 || exit 1