diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/common-functions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/common-functions.sh b/bin/common-functions.sh index 5d0c90d9..ee7336ac 100755 --- a/bin/common-functions.sh +++ b/bin/common-functions.sh @@ -68,6 +68,10 @@ if [ "${0:0:5}" != "/tmp/" ] ; then esac # mktemp some place for us... TTT=$(mktemp --tmpdir=/tmp jenkins-script-XXXXXXXX) + if [ -z "$TTT" ] ; then + echo "Failed to create tmpfile, aborting. (Probably due to read-only filesystem…)" + exit 1 + fi # prepare cleanup trap common_cleanup INT TERM EXIT # cp $0 to /tmp and run it from there |