Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
fix: proper error handling for zluda script
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Mar 7, 2024
1 parent 453602e commit 984b485
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/scripts/zluda.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 984b485

Please sign in to comment.