Fix reading the continue value
This commit is contained in:
parent
2c14504134
commit
11eec3138e
@ -17,7 +17,7 @@ installDocker() {
|
||||
echo "Does the fingerprint match [9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88] ? [y]/n"
|
||||
read continue
|
||||
|
||||
[[ "${continue}" != "" ]] && [[ "${continue}" = "y" ]] && [[ "${continue}" = "Y" ]] && return 137
|
||||
[[ "${continue}" != "" ]] && [[ "${continue}" != "y" ]] && [[ "${continue}" != "Y" ]] && return 137
|
||||
|
||||
distribution=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
|
||||
codename=$(lsb_release -cs)
|
||||
@ -31,7 +31,7 @@ installDocker() {
|
||||
echo "y/[n]"
|
||||
read continue
|
||||
|
||||
[[ "${continue}" != "" ]] && [[ "${continue}" = "y" ]] && [[ "${continue}" = "Y" ]] && return 0
|
||||
[[ "${continue}" != "" ]] && [[ "${continue}" != "y" ]] && [[ "${continue}" != "Y" ]] && return 0
|
||||
|
||||
sudo usermod -aG docker ${USER}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user