Skip to content

Commit 37cfc05

Browse files
committed
Some shellcheck offsenses
1 parent 91275cc commit 37cfc05

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/_dump_memory.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ rm -rf "$dump_dir"
1818
mkdir -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"; \
2626
done

lib/include/update/cmake.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ get_cmake_build_dir() {
1212
}
1313

1414
function 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" ]

0 commit comments

Comments
 (0)