From c537676e92002f11499e18609ed016fc354618ef Mon Sep 17 00:00:00 2001 From: Jaromil Date: Mon, 11 Dec 2017 13:41:52 +0100 Subject: [PATCH] wrap the cats --- tomb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tomb b/tomb index cd94be9..6e5a375 100755 --- a/tomb +++ b/tomb @@ -2720,8 +2720,8 @@ list_processes() { for pnum in ${(f)"$(_sudo lsof -t +D $tombmount)"}; do found=$(($found + 1)) _verbose "process found: $pnum" - puid=`cat /proc/${pnum}/loginuid` - pcmd=`cat /proc/${pnum}/cmdline` + puid=$(_cat /proc/${pnum}/loginuid) + pcmd=$(_cat /proc/${pnum}/cmdline) powner=$(getent passwd $puid) powner=${powner[(ws@:@)1]} _verbose "process found: $pnum $pcmd ($powner)" @@ -2762,8 +2762,8 @@ slam_tomb() { ${tombname} ${tombmount} # iterate through all processes running in mounted tombs for pnum in ${(f)"$(_sudo lsof -t +D $tombmount)"}; do - puid=`cat /proc/${pnum}/loginuid` - pcmd=`cat /proc/${pnum}/cmdline` + puid=$(_cat /proc/${pnum}/loginuid) + pcmd=$(_cat /proc/${pnum}/cmdline) powner=$(getent passwd $puid) powner=${powner[(ws@:@)1]} _verbose "process found: $pnum $pcmd ($powner)"