From 614b9823cef4cf9038e5ceadfc9d2796eaa8e71c Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Tue, 31 Jan 2017 17:39:53 +0330 Subject: temporarily fixed the auto-refac option --- mutator.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mutator.sh b/mutator.sh index 140fecc..ce8555a 100755 --- a/mutator.sh +++ b/mutator.sh @@ -212,10 +212,11 @@ elif [[ "$COMMAND" == "auto-refac" ]]; then RUN_INPUT_ARR=$(ls ./temp | gawk 'BEGIN{RS="\n"}{print $1}') for loopinput in ${RUN_INPUT_ARR[@]}; do echo mut1-$loopinput - echo "Running automatic-refactoring on copies of input(s)..." - "./mutator-lvl1" ./temp/$loopinput -- > ./temp/mut1-$loopinput + echo "Running automatic-refactoring on input mut1-$loopinput..." + "./mutator-lvl1" ./temp/$loopinput -- -w > ./temp/mut1-$loopinput "clang-format" -i $loopinput - "./mutator-lvl2" ./temp/mut1-$loopinput -- > ./temp/mut2-$loopinput + "./mutator-lvl2" ./temp/mut1-$loopinput -- -w > ./temp/mut2-$loopinput + "clang-format" -i ./temp/mut2-$loopinput done elif [[ "$COMMAND" == "jack" ]]; then echo -- cgit v1.2.3