Check for number of arguments set

changes/46/546/1
Michael Prokop 12 years ago
parent dc977b419a
commit 3fb013da74

@ -84,6 +84,11 @@ if ! check4progs ec2-modify-image-attribute ; then
exit 1
fi
if [ $# -lt 1 ] ; then
usage >&2
exit 1
fi
AMI_ID="$1"
echo "Marking AMI $AMI_ID as public"

@ -84,6 +84,11 @@ if ! check4progs ec2-stop-instances ; then
exit 1
fi
if [ $# -lt 1 ] ; then
usage >&2
exit 1
fi
INSTANCE_ID="$1"
echo "Stopping Instance ID $INSTANCE_ID"

Loading…
Cancel
Save