Skip to content

Commit

Permalink
Check for existing and non-empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk authored May 4, 2024
1 parent 9cf1620 commit 97a86fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws_login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function aws_login() {
rackspace_tennant_id=$(jq -r '.access.token.tenant.id' <<<"$rackspace_token_json")
}

if [ ! -f "$config_dir/aws_accounts.txt" ]; then
if [ ! -s "$config_dir/aws_accounts.txt" ]; then
get_aws_accounts_from_rackspace
fi

Expand Down

0 comments on commit 97a86fe

Please sign in to comment.