txlyre 1 년 전
부모
커밋
de4db81d49
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      langs/cpp/Dockerfile
  2. 1 1
      langs/cpp/run.sh

+ 1 - 1
langs/cpp/Dockerfile

@@ -1 +1 @@
-RUN apt-get install gcc -y
+RUN apt-get install gcc g++ -y

+ 1 - 1
langs/cpp/run.sh

@@ -2,6 +2,6 @@ OUT="$(mktemp)"
 
 g++ -o "$OUT" -xc++ -
 
-if [ -f $OUT ]; then
+if [ -f $OUT ]; && ! [ -s $OUT ]; then
   exec "$OUT"
 fi