Files
horizon-packages/common/travis/fetch-xtools.sh
T

20 lines
432 B
Bash
Raw Normal View History

2025-02-22 19:19:27 -05:00
#!/bin/bash
2019-03-05 22:47:54 -03:00
#
# fetch-xtools.sh
TAR=tar
command -v bsdtar >/dev/null && TAR=bsdtar
URL="https://github.com/leahneukirchen/xtools/archive/master.tar.gz"
FILE="xtools.tar.gz"
2019-03-05 22:47:54 -03:00
mkdir -p /tmp/bin
/bin/echo -e '\x1b[32mInstalling xtools...\x1b[0m'
if command -v wget >/dev/null; then
wget -q -O "$FILE" "$URL" || exit 1
else
xbps-fetch -o "$FILE" "$URL" || exit 1
fi
2025-02-22 19:19:27 -05:00
$TAR xf "$FILE" -C /usr/local/bin --strip-components=1 || exit 1