File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,8 @@ install_aws_cli_pip() {
49
49
fi
50
50
51
51
# Check if AWS CLI exists and works before installing
52
- if command -v aws & > /dev/null && aws --version & > /dev/null 2>&1 ; then
53
- echo " AWS CLI is already installed and working:"
54
- aws --version
52
+ if command -v aws & > /dev/null ; then
53
+ echo " AWS CLI is already installed and working"
55
54
return 0
56
55
fi
57
56
@@ -65,9 +64,8 @@ install_aws_cli_pip() {
65
64
fi
66
65
67
66
# Verify installation
68
- if command -v aws & > /dev/null && aws --version & > /dev/null 2>&1 ; then
69
- echo " AWS CLI v1 installed successfully:"
70
- aws --version
67
+ if command -v aws & > /dev/null; then
68
+ echo " AWS CLI v1 installed successfully"
71
69
else
72
70
echo " Error: AWS CLI v1 installation failed" >&2
73
71
return 1
You can’t perform that action at this time.
0 commit comments