Skip to content

Commit

Permalink
Merge pull request #659 from cirego/patch-1
Browse files Browse the repository at this point in the history
Fixup shell-check error in Yubikey create script
  • Loading branch information
mtibben committed Sep 18, 2020
2 parents 34a6dbf + 9f90b76 commit 0b9e2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/scripts/aws-iam-create-yubikey-mfa.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh
# Adds a Yubikey TOTP device to IAM

set -e
set -eu

if [ -n "$AWS_SESSION_TOKEN" ]; then
if [ -n "${AWS_SESSION_TOKEN:-}" ]; then
echo "aws-vault must be run without a STS session, please run it with the --no-session flag" >&2
exit 1
fi
Expand Down

0 comments on commit 0b9e2d4

Please sign in to comment.