commit | 216ad694355487cd240f39d574f30e029f18b0d9 | [log] [tgz] |
---|---|---|
author | Anthony Young <sleepsonthefloor@gmail.com> | Tue Oct 25 00:10:21 2011 -0700 |
committer | Anthony Young <sleepsonthefloor@gmail.com> | Tue Oct 25 00:10:21 2011 -0700 |
tree | c17e4bd813657a09ff72f097c9745a4b9375cdfc | |
parent | efb88d6956edf9dd487a18135c087e796823eb5c [diff] [blame] |
fix basename invocation
diff --git a/stack.sh b/stack.sh index 5eccaa6..7e4d466 100755 --- a/stack.sh +++ b/stack.sh
@@ -741,7 +741,7 @@ for image_url in ${IMAGE_URLS//,/ }; do # Downloads the image (uec ami+aki style), then extracts it. IMAGE_FNAME=`basename "$image_url"` - IMAGE_NAME=`basename -s .tar.gz "$IMAGE_FNAME"` + IMAGE_NAME=`basename "$IMAGE_FNAME" .tar.gz` if [ ! -f $FILES/$IMAGE_FNAME ]; then wget -c $image_url -O $FILES/$IMAGE_FNAME fi