Skip to content

Commit 58412ac

Browse files
committed
fixup! .github: add release-winget.sh to open winget-pkgs PR
Before trying to remove the temporary directory, we should ensure that we're not in it: On Windows, you cannot remove the current directory. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e32ae1d commit 58412ac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/release-winget.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ version=$(printf '%s' "${TAG_NAME#v}" | sed 's/vfs\.//')
7070
echo "==> Version: $version"
7171

7272
workdir=$(mktemp -d)
73+
origdir="$(pwd)"
7374
success=0
7475
cleanup () {
76+
cd "$origdir"
7577
if [ "$success" = 1 ]; then
7678
rm -rf "$workdir"
7779
else

0 commit comments

Comments
 (0)