summaryrefslogtreecommitdiff
path: root/scripts/install/install-image-new
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-07-30 18:12:59 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-07-30 18:12:59 -0700
commit5f2ba9dfea24a141c27af726d8a5e2781a6485ab (patch)
treebfcd9185c2af56308e02c4dfe925c52b80e52ca9 /scripts/install/install-image-new
parent1c8946a09d1a15a5422177ac4bac4fa4180e0554 (diff)
parentdd04275bd3092ae47392f0db91d9befac0cf3bc9 (diff)
downloadvyatta-cfg-quagga-5f2ba9dfea24a141c27af726d8a5e2781a6485ab.tar.gz
vyatta-cfg-quagga-5f2ba9dfea24a141c27af726d8a5e2781a6485ab.zip
Merge branch 'mendocino' of git.vyatta.com:/git/vyatta-cfg-system into mendocino
Diffstat (limited to 'scripts/install/install-image-new')
-rwxr-xr-xscripts/install/install-image-new5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/install/install-image-new b/scripts/install/install-image-new
index 5726fa03..c669da8e 100755
--- a/scripts/install/install-image-new
+++ b/scripts/install/install-image-new
@@ -33,6 +33,11 @@ fi
echo -n "What would you like to name this image? [$image_name]: "
read response
if [ -n "$response" ]; then
+ badchars=`echo $response | sed -e 's/[a-zA-Z0-9\.\_+-]//g'`
+ if [ -n "$badchars" ]; then
+ echo "Image name must be composed of a-z, A-Z, 0-9, or one of ._+-"
+ exit 1
+ fi
image_name=$response
fi