File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ check_pnpm_files() {
2020# Detect the lock file to determine the package manager
2121if [ -f "pnpm-lock.yaml" ]; then
2222 CHECK_FUNCTIONS=(
23- "check_pnpm_files"
23+ "check_pnpm_files"
2424)
2525elif [ -f "package-lock.json" ]; then
2626 CHECK_FUNCTIONS=(
@@ -46,7 +46,7 @@ if [ -z "$UPSTREAM" ]; then
4646fi
4747
4848## Get the list of files changed between upstream and HEAD
49- FILES=$(git diff --name-only $UPSTREAM..HEAD)
49+ FILES=$(git diff --name-only " $UPSTREAM" ..HEAD)
5050
5151## Check each pattern and run corresponding command
5252for check_function in "${CHECK_FUNCTIONS[@]}"; do
@@ -57,7 +57,7 @@ for check_function in "${CHECK_FUNCTIONS[@]}"; do
5757 echo "Detected changes in $DESCRIPTION"
5858
5959 ## Run the corresponding command
60- eval " $COMMAND"
60+ $COMMAND
6161
6262 if [ $? -ne 0 ]; then
6363 echo "Command failed: $COMMAND. Aborting push."
You can’t perform that action at this time.
0 commit comments