diff options
Diffstat (limited to 'scripts/build/debug')
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index c6ba4ef..680375b 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -5,7 +5,9 @@ is_enabled="${CT_GDB}" do_print_filename() { [ "${CT_GDB}" = "y" ] || return 0 echo "gdb$(do_debug_gdb_suffix)" - [ "${CT_GDB_NATIVE}" = "y" ] && echo "ncurses-${CT_NCURSES_VERSION}" + if [ "${CT_GDB_NATIVE}" = "y" ]; then + echo "ncurses-${CT_NCURSES_VERSION}" + fi } do_debug_gdb_suffix() { @@ -28,7 +30,9 @@ do_debug_gdb_get() { do_debug_gdb_extract() { CT_ExtractAndPatch "gdb$(do_debug_gdb_suffix)" - [ "${CT_GDB_NATIVE}" = "y" ] && CT_ExtractAndPatch "ncurses-${CT_NCURSES_VERSION}" + if [ "${CT_GDB_NATIVE}" = "y" ]; then + CT_ExtractAndPatch "ncurses-${CT_NCURSES_VERSION}" + fi } do_debug_gdb_build() { |