23 lines
412 B
Bash
Executable File
23 lines
412 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
OLDPWD="$PWD"
|
|
|
|
if [ -d /tmp/qarch ]; then
|
|
rm -rf /tmp/qarch
|
|
fi
|
|
|
|
DEPS="bash"
|
|
|
|
for dep in $DEPS;
|
|
do
|
|
if ! command -v bash >/dev/null; then
|
|
echo "$dep is not installed. Please install it."
|
|
fi
|
|
done
|
|
|
|
if [ "$1" == "" ]; then
|
|
echo "Usage: qpkg <pkgname>"
|
|
fi
|
|
|
|
curl http://git.vern.cc/quitaxd/qpkg/raw/branch/main/pkgs/$1.sh | bash
|