← Back to team overview

puredyne-team team mailing list archive

[Bug 508210] Re: potential problems when iso filename contains more dots

 

I thought I'd be safe from this but then...

$ sudo ./make-live-device.sh ../../puredyne-910-carrot_and_coriander-CD.iso /dev/sdb
[sudo] password for dan: 
[?] Are you sure your target is /dev/sdb ? (y/n)y
./make-live-device.sh: line 52: [: ==: unary operator expected
[!] Wrong source. Please either specify an ISO file or use 'live' to use the current live system as source.


I've committed a fix (rev #51) which uses a bash syntax for directly getting the file extension.

** Changed in: bouilloncube
   Importance: Undecided => High

** Changed in: bouilloncube
     Assignee: (unassigned) => danstowell (danstowell)

** Changed in: bouilloncube
       Status: New => Fix Committed

-- 
potential problems when iso filename contains more dots
https://bugs.launchpad.net/bugs/508210
You received this bug notification because you are a member of puredyne
team, which is the registrant for bouilloncube.

Status in bouillon cube: Fix Committed

Bug description:
http://bazaar.launchpad.net/~puredyne-team/bouilloncube/devel/annotate/head%3A/sh/make-live-device.sh#L52

if [ `echo $1 | cut -d . -f 2` == "iso" ] ; then

will break if/when iso filename contains more than one '.'





References