Skip to content

Commit

Permalink
bash fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Jan 30, 2019
1 parent a3742f4 commit 5005be1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rootfs/etc/profile.d/aws-okta.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ "${AWS_OKTA_ENABLED}" == "true" ]; then
if ! which aws-okta >/dev/null ; then
if ! which aws-okta >/dev/null; then
echo "aws-okta not installed"
exit 1
fi
Expand Down
3 changes: 1 addition & 2 deletions rootfs/etc/profile.d/aws-vault.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ "${AWS_VAULT_ENABLED}" == "true" ]; then
if ! which aws-vault >/dev/null ; then
if ! which aws-vault >/dev/null; then
echo "aws-vault not installed"
exit 1
fi
Expand Down Expand Up @@ -35,7 +35,6 @@ if [ "${AWS_VAULT_ENABLED}" == "true" ]; then
fi
}


# Start a shell or run a command with an assumed role
function aws_vault_assume_role() {
role=${1:-${AWS_DEFAULT_PROFILE}}
Expand Down
6 changes: 3 additions & 3 deletions rootfs/etc/profile.d/prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function geodesic_prompt() {

unicode)
# unicode
ASSUME_ROLE_ACTIVE_MARK=$'\u2705 ' # '✅'
ASSUME_ROLE_INACTIVE_MARK=$'\u274C ' # '❌'
ASSUME_ROLE_ACTIVE_MARK=$'\u2705 ' # '✅'
ASSUME_ROLE_INACTIVE_MARK=$'\u274C ' # '❌'
BLACK_RIGHTWARDS_ARROWHEAD=$'\u27A4 ' # '➤', suggest '▶' may be present in more fonts
BANNER_MARK=$'\u29C9 ' # '⧉'
;;
Expand All @@ -49,7 +49,7 @@ function geodesic_prompt() {
# default
ASSUME_ROLE_ACTIVE_MARK=$' \x01'$(tput bold)$(tput setaf 2)$'\x02\u2713 \x01'$(tput sgr0)$'\x02' # green bold '✓'
ASSUME_ROLE_INACTIVE_MARK=$' \x01'$(tput bold)$(tput setaf 1)$'\x02\u2717 \x01'$(tput sgr0)$'\x02' # red bold '✗'
BLACK_RIGHTWARDS_ARROWHEAD=$'\u2a20 ' # '⨠'
BLACK_RIGHTWARDS_ARROWHEAD=$'\u2a20 ' # '⨠'
BANNER_MARK=''
;;
esac
Expand Down

0 comments on commit 5005be1

Please sign in to comment.