Skip to content

Commit 5ab9add

Browse files
committed
test: replace multiple echo with cat
Suggested by shell check SC2129.
1 parent e916276 commit 5ab9add

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/units/testsuite-17.03.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ setup() {
1111
ACTION=="add", SUBSYSTEM=="mem", KERNEL=="null", OPTIONS="log_level=debug"
1212
ACTION=="add", SUBSYSTEM=="mem", KERNEL=="null", PROGRAM=="/bin/sleep 60"
1313
EOF
14-
echo "event_timeout=10" >>/etc/udev/udev.conf
15-
echo "timeout_signal=SIGABRT" >>/etc/udev/udev.conf
14+
cat >>/etc/udev/udev.conf <<EOF
15+
event_timeout=10
16+
timeout_signal=SIGABRT
17+
EOF
1618

1719
systemctl restart systemd-udevd.service
1820
}

0 commit comments

Comments
 (0)