[X2Go-Commits] [live-build-x2go] 68/160: IMGSIZEDOWNLOAD was missing a filter that limits its content to $1 (awk-style)
git-admin at x2go.org
git-admin at x2go.org
Sat Nov 18 01:55:43 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox
in repository live-build-x2go.
commit 7fe794d94f8ca9d64e7a6f3a1f563554c2736e18
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Mon Jul 24 12:35:24 2017 +0200
IMGSIZEDOWNLOAD was missing a filter that limits its content to $1 (awk-style)
---
config/includes.chroot/lib/live/config/2400-live-autoupdate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/includes.chroot/lib/live/config/2400-live-autoupdate b/config/includes.chroot/lib/live/config/2400-live-autoupdate
index fc9681c..94128ca 100755
--- a/config/includes.chroot/lib/live/config/2400-live-autoupdate
+++ b/config/includes.chroot/lib/live/config/2400-live-autoupdate
@@ -153,7 +153,7 @@ echo -n " live-autoupdater (backgrounding update task)"
# directory size as base size for the current image -
# and if the download directory is even bigger, use that size
IMGSIZE=$(du -s "/lib/live/mount/findiso/$(dirname $(sed -e 's/^.*findiso/findiso/' -e 's/ .*$//' /proc/cmdline | awk -F '=' '{ print $2 }'))" | awk '{ print $1}')
- IMGSIZEDOWNLOAD=$(du -s "/lib/live/mount/findiso/boot/X2Go-live-download" || echo "0")
+ IMGSIZEDOWNLOAD=$(du -s "/lib/live/mount/findiso/boot/X2Go-live-download" | awk '{ print $1}' || echo "0")
[ $IMGSIZEDOWNLOAD -gt $IMGSIZE ] && IMGSIZE=$IMGSIZEDOWNLOAD
else
IMGSIZE=$(df /lib/live/mount/medium | awk ' /medium/ { print $2}')
--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list