On Tue, Jan 05, 2021 at 04:13:44PM +0800, Hu Xuejiao wrote:
Signed-off-by: Hu XueJiao 1034502035@qq.com
sparrow/4-docker/buildall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sparrow/4-docker/buildall b/sparrow/4-docker/buildall index ca4406b..ee257b0 100755 --- a/sparrow/4-docker/buildall +++ b/sparrow/4-docker/buildall @@ -33,7 +33,7 @@ do_one() cd $container [ "$container_name" == 'ssh-r' ] && exit docker images | grep -wq "$container_name"
if [ "$?" == 0 ] && [ "$action" != "reboot" ]; then
if [ "$?" != 0 ] && [ "$action" != "reboot" ]; then
if images not exist and "$action" == "reboot", it also needs to execute ./build, so use || will be better
Thanks, Yinsi
[ -x build ] && ./build [ -x install ] && ./install fi
-- 2.23.0