txlyre il y a 1 an
Parent
commit
de4db81d49
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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