First of all, self-solving.
The ubuntu 20.04 fish shell worked as expected in the following ways:
"In the case of fish, I think the ""service docker status>/dev/null2>&1"" part can be written more smartly, but I didn't understand...
"
*The comparison value of $status was set to 1 to 3, but for ubuntu 20.04, it had to be set to 3.
service docker status>/dev/null2>&1
if [$status=3]
sudo service docker start
end
© 2024 OneMinuteCode. All rights reserved.