tea-create-pr: fix $TMPDIR not set

This commit is contained in:
DavHau
2023-07-28 18:14:43 +02:00
parent f063a17a5e
commit cc3ddfb99e

View File

@@ -4,6 +4,7 @@ set -euo pipefail
remoteName="${1:-origin}"
targetBranch="${2:-main}"
shift && shift
TMPDIR="$(mktemp -d)"
currentBranch="$(git rev-parse --abbrev-ref HEAD)"
user="$(tea login list -o simple | cut -d" " -f4)"
tempRemoteBranch="$user-$currentBranch"