Skip to content

Commit

Permalink
Update usage messages in driver.sh and init.sh scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Feb 8, 2024
1 parent f2d7fdb commit 8917ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/aws/driver.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

awsUsage() {
echo "Usage: $0 credential [command]"
echo "Usage: $0 $1 [command]"
echo "Commands:"
echo " init - Verify AWS CLI installation, SSH key existence, and defines functions for SSH key import and port addition in AWS EC2"
echo " delete - deletes an AWS EC2 instance and its related resources, identified by a given "balloon name", and handles associated cleanup tasks such as removing SSH tunnels and deleting security keys"
Expand Down Expand Up @@ -32,7 +32,7 @@ function driver() {
;;
*)
echo "Error: Invalid command."
authUsage
awsUsage
;;
esac

Expand Down
2 changes: 1 addition & 1 deletion src/aws/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function getValueByKeyword(){
}

function usage {
echo "script usage: $(basename \$0) [-n ssh key name] [-p] [-a change key name, instance name, and group name]" >&2
echo "script usage: $(basename \$0 $1 $2) [-n ssh key name] [-p] [-a change key name, instance name, and group name]" >&2
echo 'Start Luftballon.'
echo ' -n Change SSH key name on AWS'
echo ' -a Change SSH key name, instance name, and group name'
Expand Down

0 comments on commit 8917ece

Please sign in to comment.