From 3f27490ecf53b28e538073f23b005f35ab958f70 Mon Sep 17 00:00:00 2001
From: Masahiko Sakai <sakai@i.nagoya-u.ac.jp>
Date: Wed, 8 Feb 2023 13:36:30 +0900
Subject: [PATCH] remove unnecessary check of dm.core in mus2midHelper.

---
 bin/mus2midHelper | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/bin/mus2midHelper b/bin/mus2midHelper
index e10912ba..045722a7 100755
--- a/bin/mus2midHelper
+++ b/bin/mus2midHelper
@@ -37,12 +37,6 @@ CommonLispCmd=$3
 ProjectRoot=$4
 TargetMidFile=$5
 
-# check dm.core exists
-if [ ! -f ${ProjectRoot}lsp/${DmCore} ]; then
-  echo "${ProjectRoot}lsp/${DmCore} not found: see README.md for preparation"
-  exit 1
-fi
-
 # decomposing ${TergetMidFile} into ${Head}, ${Pal}
 #  Supposing TargetMusFile=01-TS-3-pal1.mid, 
 #  ${TargetMidFile%.*} represents "01-TS-3-pal1", and ${TargetMidFile##*.} does "mid"
@@ -110,6 +104,12 @@ fi
 
 Mus2midComLine="${Mus2midComLine} ${Head}.mus"
 
+# check dm.core exists
+if [ ! -f ${ProjectRoot}lsp/${DmCore} ]; then
+  echo "${ProjectRoot}lsp/${DmCore} not found: see README.md for preparation"
+  exit 1
+fi
+
 echo ${Mus2midComLine}
 ${Mus2midComLine}
 
-- 
GitLab