diff --git a/.github/depup.sh b/.github/depup.sh index 3b93b66..18f84df 100755 --- a/.github/depup.sh +++ b/.github/depup.sh @@ -7,13 +7,13 @@ 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 -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"