mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
getvara download
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user