diff --git a/scripts/sim.sh b/scripts/sim.sh index 0f464ce..af6a71e 100755 --- a/scripts/sim.sh +++ b/scripts/sim.sh @@ -1,7 +1,7 @@ #!/bin/bash -if [ -e "test_0.emf" ] +if [ -L "test_0.emf" ] then - rm test_0.emf + unlink test_0.emf fi -cp $1 test_0.emf +ln -s $1 test_0.emf ./dut.bin