added auto yes answer
This commit is contained in:
parent
10b86f447b
commit
cd97c5e46a
@ -2,6 +2,8 @@
|
||||
# Set up my desktop/laptop with all default setttings that I want.
|
||||
#
|
||||
# uses salt-call masterless configuration.
|
||||
#
|
||||
# to auto answer YES set the INITDESKTOP_YES=1 environment variable
|
||||
|
||||
DOTFILES_REPO="$HOME/.dotfiles"
|
||||
DOTFILES_REMOTE="https://git.rre.nu:443/jonas/dotfiles.git"
|
||||
@ -11,6 +13,9 @@ DOTFILES_REMOTE="https://git.rre.nu:443/jonas/dotfiles.git"
|
||||
set -aeo pipefail
|
||||
|
||||
function asktobreak(){
|
||||
if [[ "$INITDESKTOP_YES" == 1 ]];then
|
||||
return 1
|
||||
fi
|
||||
printf "Do you want to run this step (y/n)"
|
||||
while read -r -n 1 -s answer; do
|
||||
if [[ $answer == [YyNn] ]];then
|
||||
|
Loading…
Reference in New Issue
Block a user