fixed $installDirectory variable

This commit is contained in:
hinto.janaiyo 2022-03-10 21:33:09 -05:00
parent 55ccc10d01
commit 222703dd8e

View file

@ -20,7 +20,7 @@ off="printf \033[0m"
# #
distroName="$(cat /etc/*-release | grep -w "NAME")" distroName="$(cat /etc/*-release | grep -w "NAME")"
distroPrettyName="$(cat /etc/*-release | grep -w "PRETTY_NAME" | sed "s/PRETTY_NAME=//")" distroPrettyName="$(cat /etc/*-release | grep -w "PRETTY_NAME" | sed "s/PRETTY_NAME=//")"
installDirectory="$(pwd)/xmrig" installDirectory="$(pwd)"
################################################################ START OF SCRIPT ################################################################ ################################################################ START OF SCRIPT ################################################################
@ -103,9 +103,9 @@ else
fi fi
Build_Commands() Build_Commands()
{ {
git clone https://github.com/xmrig/xmrig.git cd $installDirectory
mkdir xmrig/build mkdir build
cd xmrig/scripts cd scripts
./build_deps.sh ./build_deps.sh
# 2022-03-10: openssl fails to compile on fedora, libressl is used instead # 2022-03-10: openssl fails to compile on fedora, libressl is used instead
if [[ $foundPackageManager = "dnf" ]]; then if [[ $foundPackageManager = "dnf" ]]; then