File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ rm -rf "$dump_dir"
1818mkdir -p " $dump_dir "
1919
2020# https://serverfault.com/a/408929
21- grep rw-p /proc/${server_pid} /maps \
21+ grep rw-p " /proc/${server_pid} /maps" \
2222 | sed -n ' s/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' \
23- | while read start stop; do \
23+ | while read -r start stop; do \
2424 gdb --batch --pid " ${server_pid} " -ex \
2525 " dump memory ${dump_dir} /${server_pid} -$start -$stop .dump 0x$start 0x$stop " ; \
2626done
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ get_cmake_build_dir() {
1212}
1313
1414function cmake_refresh_teeworlds_binary() {
15- local build_dir=" $( get_cmake_build_dir) "
15+ local build_dir
16+ build_dir=" $( get_cmake_build_dir) "
1617 if [ ! -f " $CFG_GIT_PATH_MOD /$build_dir /$CFG_COMPILED_BIN " ]
1718 then
1819 err " Error: binary not found try ./update.sh"
@@ -192,7 +193,8 @@ function cmake_update() {
192193 update_antibot
193194 apply_git_patches
194195 bin_commit=" $( git rev-parse HEAD) "
195- local build_dir=" $( get_cmake_build_dir) "
196+ local build_dir
197+ build_dir=" $( get_cmake_build_dir) "
196198 mkdir -p " $SCRIPT_ROOT /lib/tmp"
197199 local cmake_cache=" $SCRIPT_ROOT /lib/tmp/cmake_flags.txt"
198200 if [ -f " $cmake_cache " ]
You can’t perform that action at this time.
0 commit comments