[pisa-src] r2494 - trunk/tools/live-cds/ubuntu_live

  • From: Samuel Richter <samuel.richter@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Sun, 03 Apr 2011 19:00:20 +0200

Author: richter
Date: Sun Apr  3 19:00:20 2011
New Revision: 2494

Log:
cosmetics: loop and conditional initialization on one line

Modified:
   trunk/tools/live-cds/ubuntu_live

Modified: trunk/tools/live-cds/ubuntu_live
==============================================================================
--- trunk/tools/live-cds/ubuntu_live    Sun Apr  3 18:54:08 2011        (r2493)
+++ trunk/tools/live-cds/ubuntu_live    Sun Apr  3 19:00:20 2011        (r2494)
@@ -37,11 +37,9 @@
 
 #process input
 i=$((1+$#))
-while [ $# -lt $i ]
-do
+while [ $# -lt $i ]; do
     i=$#
-    case $1
-    in
+    case $1; in
         -a|--architecture) ARCH=$2; shift 2;;
 
         -i|--install) INSTALL_LIST=$2; shift 2;;
@@ -127,8 +125,7 @@
 [ -f $BUILD_PATH/files.tar.gz ] && tar -xzf $BUILD_PATH/files.tar.gz -C $CHROOT
 [ $FILES ] && tar -xzf $FILES -C $CHROOT
 
-for PATCH in "$PATCHES"/*
-do
+for PATCH in "$PATCHES"/*; do
     patch --batch --input=$PATCH --strip=1 --directory=$CHROOT
 done
 
@@ -155,8 +152,7 @@
 echo $(chroot_run dpkg-query -W --showformat='${Package} ${Version}\n') > 
$IMAGE_PATH/casper/filesystem.manifest
 cp -v $IMAGE_PATH/casper/filesystem.manifest 
$IMAGE_PATH/casper/filesystem.manifest-desktop
 REMOVE='ubiquity ubiquity-frontend-gtk ubiquity-frontend-kde casper 
lupin-casper live-initramfs user-setup discover1 xresprobe os-prober 
libdebian-installer4'
-for i in $REMOVE
-do
+for i in $REMOVE; do
     sed -i "/${i}/d" $IMAGE_PATH/casper/filesystem.manifest-desktop
 done
 
-- 
This is the pisa developer mailing list. Please also subscribe to the main pisa 
list at:
//www.freelists.org/list/pisa

Other related posts:

  • » [pisa-src] r2494 - trunk/tools/live-cds/ubuntu_live - Samuel Richter