Browse Source

fixed on outputting

Joachim M. Giæver 5 years ago
parent
commit
67150185cd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bin/lxcbuild

+ 2 - 2
bin/lxcbuild

@@ -29,8 +29,8 @@ function container_sh {
 	fi
 	OUT=$(lxc exec ${CONTAINER_NAME} -- sh -c "${1}")
 	RET=$?
-	if [ $# -eq 1 ]; then
-		[ ${RET} -eq 0 ] && cprint "ok" "${OUT}" || cprint "inf" "${OUT}"
+	if [ $# -eq 1 ] && [ ${RET} -ne 0 ]; then
+		cprint "info" "${OUT}"
 	fi
 	return ${RET}
 }