Skip to content

Commit

Permalink
3.x: Handle TMPDIR not being set (helidon-io#48)
Browse files Browse the repository at this point in the history
* Handle TMPDIR not being set
  • Loading branch information
barchetta committed Jul 8, 2024
1 parent ea7160c commit 7a36ea0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion etc/scripts/updatehelidonversion.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2022, 2023 Oracle and/or its affiliates.
# Copyright (c) 2022, 2024 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,6 +29,10 @@ if [ -z "${NEW_VERSION}" ]; then
exit 1
fi

if [ -z "${TMPDIR}" ]; then
readonly TMPDIR="/tmp"
fi

readonly POM_FILES=$(find . -name pom.xml -print)

for f in ${POM_FILES}; do
Expand Down

0 comments on commit 7a36ea0

Please sign in to comment.