summaryrefslogtreecommitdiffstats
path: root/mockrun
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-04-23 15:15:04 +0200
committerRemi Collet <remi@php.net>2024-04-23 15:15:04 +0200
commit9976999105048d7cb4c99686b46bbe7a2cb1e43b (patch)
tree00aaabaf2e94e32348bb9f001a41b17d5d07d1e1 /mockrun
parent9e9e0d7dcdc77e261bc5d944c2121cef493b3e2b (diff)
tweak output with RPM name
Diffstat (limited to 'mockrun')
-rwxr-xr-xmockrun3
1 files changed, 2 insertions, 1 deletions
diff --git a/mockrun b/mockrun
index 7f4a935..fddac87 100755
--- a/mockrun
+++ b/mockrun
@@ -33,7 +33,8 @@ do
fi
fi
TXT="$(echo $CMD | sed -e 's/^.*-r //;s/ .*$//') "
- echo -en "\r$(date +%X) ${TXT:0:10}"
+ RPM="$(echo $CMD | sed -e 's:\.rpm.*$:.rpm:;s:^.*/::')"
+ echo -en "\r$(date +%X) $RPM ${TXT:0:10}"
$CMD --uniqueext=$PPID && echo " Ok." || echo " Error !"
done