Skip to content

Commit

Permalink
Integrate change 2553454 from main.
Browse files Browse the repository at this point in the history
Copied from Perforce
 Change: 2553463
  • Loading branch information
p4-nathan committed Feb 7, 2024
2 parents 7555afd + 4099000 commit 79f2648
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/configure-login-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Configuration script for Helix Authentication Extension.
#
# Copyright 2023, Perforce Software Inc. All rights reserved.
# Copyright 2024, Perforce Software Inc. All rights reserved.
#
INTERACTIVE=true
MONOCHROME=false
Expand Down Expand Up @@ -107,7 +107,7 @@ function prompt_for() {
read -e -p "$prompt: " input
fi
if $check_func "$input"; then
eval "$var=\"$input\""
export "$var"="$input"
break
fi
done
Expand Down Expand Up @@ -143,7 +143,7 @@ function prompt_for_password() {
if $check_func "$pw"; then
# No need to prompt again, the credentials will be checked
# immediately rather than after receiving all user input.
eval "$var=\"$pw\""
export "$var"="$pw"
break
fi
done
Expand Down Expand Up @@ -172,10 +172,10 @@ function prompt_for_yn() {
# coerce the input value into either a 'yes' or a 'no'
case $input in
[yY][eE][sS]|[yY])
eval "$var='yes'"
export "$var"='yes'
;;
*)
eval "$var='no'"
export "$var"='no'
;;
esac
return 0
Expand Down

0 comments on commit 79f2648

Please sign in to comment.