Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 15, 2019
1 parent 23106b4 commit 91caf27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions audit-output-creds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ do
cat $S_FILE
echo "# list access keys"
echo "aws --profile $profile iam list-access-keys --user-name $S_USER"
if [[ -z $1 ]] && [[ $1 == "list" ]]
if [[ ! -z $1 ]] && [[ $1 == "list" ]]
then
aws --profile $profile iam list-access-keys --user-name $S_USER
fi
echo "# delete access key"
echo "# aws --profile $profile iam delete-access-key --user-name $S_USER --access-key-id ${info["aws_access_key_id"]}"
if [[ -z $1 ]] && [[ $1 == "delete" ]]
if [[ ! -z $1 ]] && [[ $1 == "delete" ]]
then
aws --profile $profile iam delete-access-key --user-name $S_USER --access-key-id ${info["aws_access_key_id"]}"
aws --profile $profile iam delete-access-key --user-name $S_USER --access-key-id ${info["aws_access_key_id"]}
fi

scount=$(( $scount + 1 ))
Expand Down

0 comments on commit 91caf27

Please sign in to comment.