setup includes media sync and defaults editor; moved almost all prompts to the start of the setup

This commit is contained in:
Wryn Wagner
2021-09-24 10:20:54 -06:00
parent 72d6e76602
commit e04a16bbcd
11 changed files with 86 additions and 65 deletions

19
bin/aws/configure vendored Executable file
View File

@ -0,0 +1,19 @@
#!/bin/zsh
source "$HOME/.config/wryn/env/env.zsh"
source $ZSH_COLOR_UTIL
#####################################################################
CONFIGURE() {
CHECK "checking for '$DOTWRYN_AWS_PROFILE' aws credentials"
grep -q "^\\[$DOTWRYN_AWS_PROFILE\\]$" "$HOME/.aws/credentials" \
&& { OK; return 0 } || WARN
USER_PROMPT "set up credentials now? [Y/n]"
READ_K yn
[[ $yn =~ ^[nN] ]] && return 1
aws --profile $DOTWRYN_AWS_PROFILE configure
}
CONFIGURE