From 771925c35d3cf961b742fb4163d46b4bac87ebe5 Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Sun, 6 Aug 2023 02:15:55 +0900 Subject: [PATCH 1/2] fix typo in depup script --- .github/depup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/depup.sh b/.github/depup.sh index 3b93b66..cb268d4 100755 --- a/.github/depup.sh +++ b/.github/depup.sh @@ -12,8 +12,8 @@ atexit() { trap atexit EXIT trap 'rc=$?; trap - EXIT; atexit; exit $?' INT PIPE TERM -tempdir=$(mktemp -d) +tmpdir=$(mktemp -d) # sync install.sh with https://github.com/reviewdog/action-setup -curl -sSL https://raw.githubusercontent.com/reviewdog/action-setup/master/install.sh -o "$tempdir/install.sh" -install -m 755 "$tempdir/install.sh" "$CURRENT/../install.sh" +curl -sSL https://raw.githubusercontent.com/reviewdog/action-setup/master/install.sh -o "$tmpdir/install.sh" +install -m 755 "$tmpdir/install.sh" "$CURRENT/../install.sh" From 227a4b2dbc6f94e139986512fc037f38f0d0826e Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Sun, 6 Aug 2023 02:17:11 +0900 Subject: [PATCH 2/2] remove temporary directory --- .github/depup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/depup.sh b/.github/depup.sh index cb268d4..18f84df 100755 --- a/.github/depup.sh +++ b/.github/depup.sh @@ -7,7 +7,7 @@ set -eu # cleanup temporary directory unset tmpdir atexit() { - [[ -n ${tmpdir-} ]] && rm -f "$tmpdir" + [[ -n ${tmpdir-} ]] && rm -rf "$tmpdir" } trap atexit EXIT trap 'rc=$?; trap - EXIT; atexit; exit $?' INT PIPE TERM