From c5f0194af72b23c09c2a6e78c7eff04441d83563 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Mon, 15 Mar 2021 09:36:12 +0800 Subject: [PATCH] chore(CI): fix build error on windows --- Makefile | 2 +- scripts/git-hook-pre-push.sh | 2 +- scripts/git-hooks-init.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 97072f81a..2223f9702 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -$(shell scripts/git-hooks-init.sh) +$(shell $(CURDIR)/scripts/git-hooks-init.sh) REBAR_VERSION = 3.14.3-emqx-5 REBAR = $(CURDIR)/rebar3 BUILD = $(CURDIR)/build diff --git a/scripts/git-hook-pre-push.sh b/scripts/git-hook-pre-push.sh index 2f5a9abcd..5b3f2edf2 100755 --- a/scripts/git-hook-pre-push.sh +++ b/scripts/git-hook-pre-push.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/scripts/git-hooks-init.sh b/scripts/git-hooks-init.sh index a9f02ab3a..fd47dd46f 100755 --- a/scripts/git-hooks-init.sh +++ b/scripts/git-hooks-init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail