mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-01-31 09:43:04 -05:00
Tweak suggestive selfupdate selfupdate invocation in initialisation script.
This commit is contained in:
@@ -173,16 +173,17 @@ if [[ "$gvm_suggestive_selfupdate" == "true" ]]; then
|
||||
echo ""
|
||||
|
||||
# this is a configuration setting
|
||||
if [[ "$gvm_auto_answer" != "true" ]]; then
|
||||
if [[ "$gvm_auto_answer" == "false" ]]; then
|
||||
echo -n "Would you like to upgrade now? (Y/n)"
|
||||
read upgrade
|
||||
fi
|
||||
|
||||
if [[ -z "$upgrade" ]]; then upgrade="Y"; fi
|
||||
fi
|
||||
if [[ "$upgrade" == "Y" || "$upgrade" == "y" ]]; then
|
||||
__gvmtool_selfupdate
|
||||
unset upgrade
|
||||
|
||||
if [[ "$upgrade" == "Y" || "$upgrade" == "y" ]]; then
|
||||
__gvmtool_selfupdate
|
||||
unset upgrade
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user