Skip to content

Commit 2bd3970

Browse files
committed
Workaround problem with lxcfs part 2
Integrate pull request feedback
1 parent 806585c commit 2bd3970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build-and-provide-package

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ PATH='/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin'
1515
export QEMU_RESERVED_VA=0x0
1616

1717
get_uptime_seconds() {
18-
grep \\. /proc/uptime > /dev/zero
18+
grep -q '\.' /proc/uptime
1919
if [ $? -eq 0 ];then
20-
echo `cut -d . -f 1 /proc/uptime`
20+
echo $(cut -d . -f 1 /proc/uptime)
2121
else
22-
echo `cut -d" " -f 1 /proc/uptime`
22+
echo $(cut -d" " -f 1 /proc/uptime)
2323
fi
2424
}
2525

0 commit comments

Comments
 (0)