summary refs log tree commit diff stats
path: root/bin
diff options
context:
space:
mode:
authorXiao-Yong <jinxiaoyong@gmail.com>2022-11-02 23:51:21 -0500
committerGitHub <noreply@github.com>2022-11-03 05:51:21 +0100
commit6b1e353aa109756cefc961c8a91d1df49912ab51 (patch)
tree2d664472ab11831298e5ca95d99b27a53a9f18d4 /bin
parent117a19d032b887d276103fe5c90c2062cb0a6349 (diff)
downloadNim-6b1e353aa109756cefc961c8a91d1df49912ab51.tar.gz
nim-gdb: remove unnecessary quotes and fix uname (#20739)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nim-gdb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nim-gdb b/bin/nim-gdb
index f7f9a79c6..13b361f93 100755
--- a/bin/nim-gdb
+++ b/bin/nim-gdb
@@ -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))))