diff --git a/config/scripts/zluda.nu b/config/scripts/zluda.nu index f1e6438..7c6a873 100755 --- a/config/scripts/zluda.nu +++ b/config/scripts/zluda.nu @@ -4,12 +4,13 @@ let ZLUDA_LATEST = (http get https://api.github.com/repos/vosen/ZLUDA/releases/l http get $ZLUDA_LATEST | save -f /tmp/zluda.tar.gz +mkdir /tmp/zluda + try { - mkdir /tmp/zluda tar --strip-components 1 -xvzf /tmp/zluda.tar.gz -C /tmp/zluda - mv /tmp/zluda /usr/lib64/zluda - rm -f /tmp/zluda.tar.gz } catch { - echo "Failed running ZLUDA script" + echo "Failed extracting the entire zluda file for some reason." } +rm -f /tmp/zluda.tar.gz +mv /tmp/zluda /usr/lib64/zluda