From 1add58d0335cd39a399387206d75daafc4211aea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20Borbo=C3=ABn?= <ponsfrilus@gmail.com>
Date: Fri, 30 Aug 2019 18:26:20 +0200
Subject: [PATCH] Last try for $tee_stderr

---
 deploy.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/deploy.sh b/deploy.sh
index 73567ae..47fae30 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -37,7 +37,7 @@ git remote set-url origin "git@gitlab.epfl.ch:idevelop/howtogitlabrunner.git"
 git push -f --tags
 echo "END OF PUSH"
 
-tee_stderr=cat  # Permission denied on /proc/self/fd/2, wat?
+tee_stderr="perl -pe 'STDERR->print(\$_)'"
 
 echo "BEGIN UPLOAD"
 UPLOADED_FILE_URL="$(curl --request POST --header "Private-Token: ${MY_TOKEN}" --form "file=@README.pdf" "https://gitlab.epfl.ch/api/v4/projects/$PROJECT_ID/uploads" | $tee_stderr | jq -r .url)"
-- 
GitLab