From 9b578fe280b0ddef1986487bce225cc85e15c797 Mon Sep 17 00:00:00 2001 From: Seven Yu Date: Sat, 9 Dec 2023 13:17:08 +0800 Subject: [PATCH] fix create_snippet bug --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index eeeb069..ed2ce92 100755 --- a/build.sh +++ b/build.sh @@ -76,6 +76,7 @@ create_snippet() { SRC=$2 FILE_NAME=$SRC$TYPE TMP=$TEMP_ROOT/_Snippets/template$TYPE + echo $TMP if [ -f "$SRC_ROOT$SRC.*" ] || [ -d "$SRC_ROOT$SRC" ]; then die "The extension \"$SRC\" already exists!" else @@ -137,7 +138,7 @@ while getopts "p:y:j:J:T:Y:i:r:h" opts; do exit 0 ;; J | T | Y) - create_package "$opts" "$OPTARG" + create_snippet "$opts" "$OPTARG" exit 0 ;; i)