]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: replace multiple echo with cat 22172/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Jan 2022 10:03:52 +0000 (19:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Jan 2022 11:48:36 +0000 (20:48 +0900)
Suggested by shell check SC2129.

test/units/testsuite-17.03.sh

index 91f0211bca17e1b473de1c4405287f259b379b79..4c2a0410dac5280a4f712767cdc4c873815889da 100755 (executable)
@@ -11,8 +11,10 @@ setup() {
 ACTION=="add", SUBSYSTEM=="mem", KERNEL=="null", OPTIONS="log_level=debug"
 ACTION=="add", SUBSYSTEM=="mem", KERNEL=="null", PROGRAM=="/bin/sleep 60"
 EOF
-    echo "event_timeout=10" >>/etc/udev/udev.conf
-    echo "timeout_signal=SIGABRT" >>/etc/udev/udev.conf
+    cat >>/etc/udev/udev.conf <<EOF
+event_timeout=10
+timeout_signal=SIGABRT
+EOF
 
     systemctl restart systemd-udevd.service
 }