Skip to content

Commit

Permalink
execute command
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jan 18, 2024
1 parent 070b215 commit 2368ff9
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions src/aws/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ awsUsage() {
exit 1
}

function auth(){
# Check if at least one argument is provided
if [ $# -eq 0 ]; then
awsUsage
fi

# Check if at least one argument is provided
if [ $# -eq 0 ]; then
awsUsage
fi

# Execute the appropriate command
case "$1" in
init)
init "${@:2}"
;;
*)
echo "Error: Invalid command."
authUsage
;;
esac

}
# Execute the appropriate command
case "$1" in
init)
init "${@:2}"
;;
*)
echo "Error: Invalid command."
authUsage
;;
esac

0 comments on commit 2368ff9

Please sign in to comment.