Skip to content

Commit

Permalink
Add installAwsCli function to driver.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Feb 22, 2024
1 parent 573471e commit e2dbe9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/aws/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function driver() {
restart)
restart "${@:2}"
;;
install)
installAwsCli "${@:2}"
;;
*)
echo "Error: Invalid command."
awsUsage
Expand Down
6 changes: 4 additions & 2 deletions src/aws/installAwsCli.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

apt update;
apt install awscli
function installAwsCli(){
apt update;
apt install awscli
}

1 change: 1 addition & 0 deletions src/aws/load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ source $manageConfigPath/src/aws/init.sh
source $manageConfigPath/src/aws/delete.sh
source $manageConfigPath/src/aws/stop.sh
source $manageConfigPath/src/aws/restart.sh
source $manageConfigPath/src/aws/installAwsCli.sh
source $manageConfigPath/src/aws/driver.sh

0 comments on commit e2dbe9b

Please sign in to comment.