Latest
This commit is contained in:
parent
bdf065c785
commit
0bdb6b1aa8
2 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ upgradeDarwin() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Prompt for SUDO_PASSWORD
|
### Prompt for SUDO_PASSWORD
|
||||||
if [ "$SUDO_PASSWORD" = "" ]; then
|
if [ -z "$SUDO_PASSWORD" ] || [ "$SUDO_PASSWORD" = "" ]; then
|
||||||
logg prompt "Enter the current user's login / admin password. Press ENTER to bypass and skip enabling auto-login. If you would like to bypass this prompt next time then pass in the password as an environment variable named SUDO_PASSWORD before running the kickstart script."
|
logg prompt "Enter the current user's login / admin password. Press ENTER to bypass and skip enabling auto-login. If you would like to bypass this prompt next time then pass in the password as an environment variable named SUDO_PASSWORD before running the kickstart script."
|
||||||
SUDO_PASSWORD="$(gum input --password --placeholder="Enter password..")"
|
SUDO_PASSWORD="$(gum input --password --placeholder="Enter password..")"
|
||||||
export SUDO_PASSWORD
|
export SUDO_PASSWORD
|
||||||
|
|
|
@ -54,8 +54,8 @@ installAge() {
|
||||||
|
|
||||||
# @description Helper function utilized by [[decryptKey]] to ensure the `expect` command is available
|
# @description Helper function utilized by [[decryptKey]] to ensure the `expect` command is available
|
||||||
installExpect() {
|
installExpect() {
|
||||||
if ! command -v expect > /dev/null; then
|
if ! command -v unbuffer > /dev/null; then
|
||||||
logg info 'Running brew install expect'
|
logg info 'Running brew install expect / unbuffer'
|
||||||
brew install --quiet expect
|
brew install --quiet expect
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue