This commit is contained in:
Roy Olav Purser 2022-03-05 19:33:56 +01:00
parent 601ff195ff
commit 21c4c64cde
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -4,6 +4,13 @@ temp_name=$(head -c 20 /dev/random | xxd -p | tr -dc a-f0-9)
temp_dir="/tmp/${temp_name}"
chrome_dir="${temp_dir}/chrome"
if [[ ! -n "${DRONE_TAG}" ]]
then
export DRONE_TAG=$(git describe --abbrev=0 | tr -dc v0-9)
fi
rm "${dir}/out"
mkdir -p "${temp_dir}/out"
mkdir -p "${chrome_dir}"