diff --git a/AmRRON-PAT-GUI.sh b/AmRRON-PAT-GUI.sh index 754ae7b..427827e 100755 --- a/AmRRON-PAT-GUI.sh +++ b/AmRRON-PAT-GUI.sh @@ -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