티스토리 뷰

공부

[aws] cli check version

승가비 2023. 5. 12. 22:23
728x90
#!/bin/bash

AWS_CLI_VERSION=$(aws --version | awk '{print $1}' | cut -d/ -f2)

if [[ ${AWS_CLI_VERSION} < 2.0.0 ]]; then
  echo "stop"
fi
728x90
댓글