fix basename invocation
This commit is contained in:
parent
efb88d6956
commit
216ad69435
1 changed files with 1 additions and 1 deletions
2
stack.sh
2
stack.sh
|
@ -741,7 +741,7 @@ if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
|
||||||
for image_url in ${IMAGE_URLS//,/ }; do
|
for image_url in ${IMAGE_URLS//,/ }; do
|
||||||
# Downloads the image (uec ami+aki style), then extracts it.
|
# Downloads the image (uec ami+aki style), then extracts it.
|
||||||
IMAGE_FNAME=`basename "$image_url"`
|
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
|
if [ ! -f $FILES/$IMAGE_FNAME ]; then
|
||||||
wget -c $image_url -O $FILES/$IMAGE_FNAME
|
wget -c $image_url -O $FILES/$IMAGE_FNAME
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue