]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools: replace multi-line echo by <<EOF
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Feb 2023 21:02:15 +0000 (22:02 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2023 08:19:04 +0000 (09:19 +0100)
tools/debug-sd-boot.sh

index 027d607a496014a109ab09098c394d9a03ab2f78..b087c1d4d5ede3a73722a670b9d8ded00a6ffe17 100755 (executable)
@@ -74,9 +74,11 @@ else
     gdb_script="${3}"
 fi
 
-echo "file ${binary}
+cat >"${gdb_script}" <<EOF
+file ${binary}
 add-symbol-file ${symbols} ${text} -s .data ${data}
-set architecture ${arch}" > "${gdb_script}"
+set architecture ${arch}"
+EOF
 
 if [[ -z "${3}" ]]; then
     gdb -x "${gdb_script}" -ex "target remote :1234"