getvara download

This commit is contained in:
tb14
2025-01-27 14:53:27 -06:00
parent 463c080fc8
commit 5ba99a952e
+4 -3
View File
@@ -66,6 +66,7 @@ rc=$?
function dep_check() {
USERDIR=$HOM
if ! hash jq 2>/dev/null; then
@@ -93,14 +94,14 @@ ed50cbf48ed223efd/raw/efe402285290b46c700d9d29e285c0686b79314f/getardoplist ||
fi
if ! hash getvaralist; then
wget -P $USERDIR -N https://gist.githubusercontent.com/km4ack/2b5db90724cab67\
wget -P /tmp/ -N https://gist.githubusercontent.com/km4ack/2b5db90724cab67\
ed50cbf48ed223efd/raw/efe402285290b46c700d9d29e285c0686b79314f/getardoplist ||
{ ERRCODE="Failed to download getardoplist script"; errors; return; }
sed 's/ardop/vara/g' $USERDIR/getardoplist >> $USERDIR/getvaralist ||
sed 's/ardop/vara/g' /tmp/getardoplist >> /tmp/getvaralist ||
{ ERRCODE="Failed to clone and modify getardop to gitvara"; errors; return; }
chmod +x $USERDIR/getvaralist && sudo mv $USERDIR/getvaralist /usr/local/bin/ ||
chmod +x /tmp/getvaralist && sudo mv /tmp/getvaralist /usr/local/bin/ ||
{ ERRCODE="Failed to add getvaralist to /usr/local/bin"; errors; return; }
fi