ilayna / Single-GPU-passthrough-amd-nvidia

My way of doing single gpu passthrough the simplest way, I've gathered many sources together to make the perfect Single GPU passthrough guide the simplest and easiest way.
GNU General Public License v3.0
397 stars 39 forks source link

sudo bash src/setup.sh not working #19

Closed longlostbro closed 2 years ago

longlostbro commented 2 years ago

Problem: sudo bash src/setup.sh not working

Error reported: Syntax error: "(" unexpected

Workaround: sudo bash ./src/setup.sh

ilayna commented 2 years ago

That is really weird, any reason for that ? can anyone else confirm that's the case for them too ?

dank-yo commented 2 years ago

That is really weird, any reason for that ? can anyone else confirm that's the case for them too ?

Yes, i just signed up for an account to comment I had the exact same issue last night on Ubuntu 22.04. I tried modifying some of the script but didn't get far (I'm not very familiar with bash).

src/setup.sh: 7: Bad substitution src/setup.sh: 47: Syntax error: "(" unexpected (expecting "}")

ilayna commented 2 years ago

That is really weird, any reason for that ? can anyone else confirm that's the case for them too ?

Yes, i just signed up for an account to comment I had the exact same issue last night on Ubuntu 22.04. I tried modifying some of the bash script but didn't get far.

src/setup.sh: 7: Bad substitution src/setup.sh: 47: Syntax error: "(" unexpected (expecting "}")

Can you try again now ? I've updated the README.md, please confirm whether it has fixed your issue or not, if not your bash version might be outdated (most likely not since you are running the latest version of Ubuntu)

dank-yo commented 2 years ago

That worked! I think that's the most likely answer because I triple checked and it didn't seem like anything was wrong with the code itself (again, not the best source for that though).

ilayna commented 2 years ago

That worked! I think that's the most likely answer because I triple checked and it didn't seem like anything was wrong with the code itself (again, not the best source for that though).

Okay, Great ! Closing the issue for now as it seems resolved, if someone have explanation to why src/ doesn't work and ./src/ works please let me know.