nuclide.sh: Small tweak for compatibility

This commit is contained in:
Marco Cawthorne 2022-04-24 15:20:04 -07:00
parent 8aee63968d
commit e80cd05ef8
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/bash
set -e set -e
SRCPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )" SRCPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
cd "$SRCPATH/bin" cd "$SRCPATH/bin"
if [ -f "$SRCPATH"/bin/fteqw ]; then if [ -f "$SRCPATH/bin/fteqw" ]; then
if [[ -z "${NUCLIDE_GDB}" ]]; then if [ -z "$NUCLIDE_GDB" ]; then
./fteqw -basedir ../ $* ./fteqw -basedir ../ $*
else else
gdb --args ./fteqw -basedir ../ $* gdb --args ./fteqw -basedir ../ $*