Skip to content

Commit

Permalink
fix: 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasAugustin committed Mar 5, 2024
1 parent 73ea4c8 commit 67b307a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/sync_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,9 @@ function cmd_from_yml() {
YML_PATH="${YML_PATH_SUFF}"
else
cp ${FILE_NAME} "tmp.${FILE_NAME}"
YML_PATH=".hooks.${YML_PATH_SUFF}"
info "${YML_PATH}"
YML_PATH=".hooks${YML_PATH_SUFF}"
fi

info "${YML_PATH}"

yq "${YML_PATH} | .[]" "tmp.${FILE_NAME}"

readarray cmd_Arr < <(yq "${YML_PATH} | .[]" "tmp.${FILE_NAME}")

rm "tmp.${FILE_NAME}"
Expand Down

0 comments on commit 67b307a

Please sign in to comment.