From e0ac5cf3cfa8e5f7b819adee42cc405c1b4b30b9 Mon Sep 17 00:00:00 2001 From: Steve McIntyre <93sam@debian.org> Date: Thu, 7 Mar 2013 07:33:58 +0000 Subject: [PATCH] Tweak layout of code --- tools/boot/wheezy/common.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/boot/wheezy/common.sh b/tools/boot/wheezy/common.sh index 04f44010..c9a9793d 100644 --- a/tools/boot/wheezy/common.sh +++ b/tools/boot/wheezy/common.sh @@ -14,7 +14,13 @@ DI_DIR="$(echo "$DI_DIR" | sed -e "s|%ARCH%|$ARCH|g")" # (i.e. using "all" for netinst, DVD etc.) - print the name of the # first desktop task recommended by task-desktop UNSPEC_DESKTOP_DEFAULT="$($BASEDIR/tools/apt-selection cache depends task-desktop | \ - awk '/Recommends:.*desktop/ { gsub("task-","");gsub("-desktop","");print $2; exit}')" + awk ' + /Recommends:.*desktop/ { + gsub("task-","") + gsub("-desktop","") + print $2 + exit + }')" # Only i386 and amd64 support desktop selection with the 'light' and 'all' # desktops; make sure other arches get a working config