nim-gdb: remove unnecessary quotes and fix uname (#20739)
This commit is contained in:
parent
117a19d032
commit
6b1e353aa1
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ which nim > /dev/null || (echo "nim not in PATH"; exit 1)
|
|||
which gdb > /dev/null || (echo "gdb not in PATH"; exit 1)
|
||||
which readlink > /dev/null || (echo "readlink not in PATH."; exit 1)
|
||||
|
||||
if [[ "$(uname -s)" == "Darwin" || "(uname -s)" == *"BSD" ]]; then
|
||||
if [[ $(uname -s) == Darwin || $(uname -s) == *BSD ]]; then
|
||||
NIM_SYSROOT=$(dirname $(dirname $(readlink -f $(which nim))))
|
||||
else
|
||||
NIM_SYSROOT=$(dirname $(dirname $(readlink -e $(which nim))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue