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() {
20
20
# Detect the lock file to determine the package manager
21
21
if [ -f "pnpm-lock.yaml" ]; then
22
22
CHECK_FUNCTIONS=(
23
- "check_pnpm_files"
23
+ "check_pnpm_files"
24
24
)
25
25
elif [ -f "package-lock.json" ]; then
26
26
CHECK_FUNCTIONS=(
@@ -46,7 +46,7 @@ if [ -z "$UPSTREAM" ]; then
46
46
fi
47
47
48
48
## 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)
50
50
51
51
## Check each pattern and run corresponding command
52
52
for check_function in "${CHECK_FUNCTIONS[@]}"; do
@@ -57,7 +57,7 @@ for check_function in "${CHECK_FUNCTIONS[@]}"; do
57
57
echo "Detected changes in $DESCRIPTION"
58
58
59
59
## Run the corresponding command
60
- eval " $COMMAND"
60
+ $COMMAND
61
61
62
62
if [ $? -ne 0 ]; then
63
63
echo "Command failed: $COMMAND. Aborting push."
You can’t perform that action at this time.
0 commit comments