avadapal 2 years ago
parent
commit
ece0aa1270
1 changed files with 5 additions and 7 deletions
  1. 5 7
      Docker/run-experiment.sh

+ 5 - 7
Docker/run-experiment.sh

@@ -30,15 +30,15 @@ if [ "$5" != "" ]; then
     duoramtype="$5"
 fi
 
-if [ "$mode" == "read" ]; then
+if [ "$mode" = "read" ]; then
     modeval="0"
 fi
 
-if [ "$mode" == "write" ]; then
+if [ "$mode" = "write" ]; then
     modeval="0"
 fi
 
-if [ "$mode" == "readwrite" ]; then
+if [ "$mode" = "readwrite" ]; then
     modeval="1"
 fi
 
@@ -47,9 +47,7 @@ items=$((1<<size))
 echo ===== Running duoram $mode $size $iters
 date "+===== Start %s %F %T"
 
-if ["$5" = "3P"]; then
-
-    if [ "$4" = "online" ]; then
+    if [ "$4" = "online" -a "$5" = "3P" ]; then
         # Run, saving the output
         savefilep2=$$.p2.out
         savefilep0=$$.p1.out
@@ -71,7 +69,7 @@ if ["$5" = "3P"]; then
 
 
 
-    if [ "$4" = "preproc" ]; then
+    if [ "$4" = "preproc" -a "$5" = "3P" ]; then
         # Run, saving the output
         savefilep2=$$.p2.out
         savefilep0=$$.p1.out