ktsol/dwarfing

amdgpu-mod.sh: function: not found

Closed this issue · 2 comments

sh amdgpu-mod.sh


amdgpu-mod.sh: 21: amdgpu-mod.sh: function: not found
-e
____________________________________________________
|              _    __   _                 _    _  |
|  /\   |\/|  | \  /__  |_)  | |    |\/|  / \  | \ |
| /--\  |  |  |_/  \_|  |    |_|    |  |  \_/  |_/ |
|__________________________________________________|

amdgpu-mod.sh: 29: amdgpu-mod.sh: Syntax error: "}" unexpected

what am i doing wrong?

It is BASH script, not SH. And it must be executed as file after $chmod +x ./amdgpu-mod.sh