而条件并没有在真正的结果中通过.语法有什么问题?
RESULT="Exited (0) Less than a second ago"
if [ "$RESULT" = "Exited (0) Less than a second ago" || "$RESULT" = "Stop" ]
then
echo 'exited'
elif [ "$RESULT" = *"Up"* ]
then
echo 'stopped and exited'
else
echo 'Docker already removed'
fi