Skip to content

Commit 52a11c7

Browse files
authored
Update pre-push
1 parent 19ba9c1 commit 52a11c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.husky/pre-push

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ check_pnpm_files() {
2020
# Detect the lock file to determine the package manager
2121
if [ -f "pnpm-lock.yaml" ]; then
2222
CHECK_FUNCTIONS=(
23-
"check_pnpm_files"
23+
"check_pnpm_files"
2424
)
2525
elif [ -f "package-lock.json" ]; then
2626
CHECK_FUNCTIONS=(
@@ -46,7 +46,7 @@ if [ -z "$UPSTREAM" ]; then
4646
fi
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
5252
for 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."

0 commit comments

Comments
 (0)