From 0263e8c273e364780c3baa0dd44cda9844079626 Mon Sep 17 00:00:00 2001 From: Natapat Samutpong Date: Fri, 28 Jan 2022 06:43:32 +0700 Subject: [PATCH] feat: test.sh in other directory --- test.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test.sh b/test.sh index 28d4bb6..7008903 100755 --- a/test.sh +++ b/test.sh @@ -1,12 +1,13 @@ -in=$1 # Get first's file name -name=${in%.*} # Remove extension +in=$1 # Get first's file name +noext=${in%.*} # Remove extension +name=${noext##*/} # Remove path make debug -blspc compile $name.blsp +blspc compile $noext.blsp echo -e "------------------------------------------- SOURCE" -cat ./$name.blsp +cat $noext.blsp echo -e "\n----------------------------------------- COMPILED" -cat ./$name.bsm +cat $noext.bsm echo -e "------------------------------------------- OUTPUT" blspc run $name.bsm echo -e "--------------------------------------------------"