Skip to content

Commit

Permalink
fix create_snippet bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dofy committed Dec 9, 2023
1 parent 0fa99f5 commit 9b578fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9b578fe

Please sign in to comment.