3
0

2 Revīzijas cc83e764c1 ... db15bc1b7b

Autors SHA1 Ziņojums Datums
  sshsshy db15bc1b7b Merge branch 'master' of https://git-crysp.uwaterloo.ca/piros/Scripts 2 gadi atpakaļ
  sshsshy f59708f0d6 Fix shebang to python3, fix SGX_FLAG in reproduce_results.sh 2 gadi atpakaļ
2 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 1 1
      plotter/gen_graphs.py
  2. 2 3
      reproduce_results.sh

+ 1 - 1
plotter/gen_graphs.py

@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 import sys
 import os
 import subprocess

+ 2 - 3
reproduce_results.sh

@@ -1,9 +1,8 @@
 #!/bin/bash
 
 SGX_DRIVER_FILE=/dev/isgx
-test -e "$SGX_DRIVER_FILE"
-SGX_FLAG=$?
-if [ $SGX_FLAG ]
+test -e "$SGX_DRIVER_FILE" && SGX_FLAG=1 || SGX_FLAG=0
+if [ $SGX_FLAG == "1" ]
 then
   docker run --device /dev/isgx -dt --name zt_container zt_image bash -c "start-aesmd && exec bash"
   docker exec -t zt_container bash -c "cd /pir/ && ./run_ztlsoram.sh"