[pisa-src] r2496 - trunk/tools/live-cds/register_vbox.sh

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

Author: richter
Date: Sun Apr  3 19:17:27 2011
New Revision: 2496

Log:
improve live-cd registering script

now gets the absolute path where the live-cd iso lies

Modified:
   trunk/tools/live-cds/register_vbox.sh

Modified: trunk/tools/live-cds/register_vbox.sh
==============================================================================
--- trunk/tools/live-cds/register_vbox.sh       Sun Apr  3 19:12:10 2011        
(r2495)
+++ trunk/tools/live-cds/register_vbox.sh       Sun Apr  3 19:17:27 2011        
(r2496)
@@ -26,7 +26,8 @@
 done
 
 [ -f "$ISO" ] || usage 1
-PATH=$(dirname "$ISO")
+PATH=$(cd $(dirname "$ISO"); pwd)
+ISO="$PATH/${ISO##*/}"
 #[ "$NAME" ] || NAME=$(basename "${ISO%.iso}") #FIXME: gives 'basename: not 
found'
 [ "$MEM" ] || MEM=384
 
-- 
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] r2496 - trunk/tools/live-cds/register_vbox.sh - Samuel Richter