Resolve shellcheck SC2002 useless cat
[releng/global-jjb.git] / shell / job-cost.sh
index 2264728..0d0e55e 100644 (file)
@@ -39,7 +39,7 @@ else
 fi
 
 # Retrieve the current uptime (in seconds)
-uptime=$(cat /proc/uptime | awk '{print $1}')
+uptime=$(awk '{print $1}' /proc/uptime)
 # Convert to integer by truncating fractional part' and round up by one
 ((uptime=${uptime%\.*}+1))