diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2023-05-24 20:04:06 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2023-05-24 20:04:06 +0000 |
commit | 09b202810fd92de8fe19efd239444ddc24889895 (patch) | |
tree | 6f546f9980a9a5494bee79048c5abb4ea8f67e64 /distrib/miniroot/install.sub | |
parent | 2f2d95d2ea33990ce1a65bef8e166ebf0bd39e11 (diff) |
replace "$(cat file)" with the ksh construct "$(<file)"
ok kn@ millert@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index d3b87bca933..1f4b87c469e 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1247 2023/05/22 23:32:31 kn Exp $ +# $OpenBSD: install.sub,v 1.1248 2023/05/24 20:04:05 naddy Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -77,7 +77,7 @@ wait_cgiinfo() { local _l _s _key _val if [ -f /tmp/cgipid ]; then - wait "$(cat /tmp/cgipid)" 2>/dev/null + wait "$(</tmp/cgipid)" 2>/dev/null rm -f /tmp/cgipid fi @@ -2650,7 +2650,7 @@ start_cgiinfo() { ( sleep 12; if [ -f /tmp/cgipid ]; then - kill -INT -"$(cat /tmp/cgipid)" >/dev/null 2>&1 + kill -INT -"$(</tmp/cgipid)" >/dev/null 2>&1 # wait will be done by wait_cgiinfo fi ) & @@ -3449,7 +3449,7 @@ do_upgrade() { # Perform final steps common to both an install and an upgrade. finish_up if [ -f /tmp/wdpid ]; then - kill -KILL "$(cat /tmp/wdpid)" 2>/dev/null + kill -KILL "$(</tmp/wdpid)" 2>/dev/null # do not bother waiting rm -f /tmp/wdpid fi @@ -3480,7 +3480,7 @@ WATCHDOG_PERIOD_SEC=$((30 * 60)) reset_watchdog() { local _pid if [ -f /tmp/wdpid ]; then - _pid=$(cat /tmp/wdpid) + _pid=$(</tmp/wdpid) kill -KILL -$_pid 2>/dev/null wait $_pid 2>/dev/null rm -f /tmp/wdpid |